3 ms·
> Git will let you blow away a month's work if you mistype a command. No, it won't. It's much harder to lose work in Git than you think. But really, if your re
by umvi 7y ago
> Git will let you blow away a month's work if you mistype a command.
No, it won't. It's much harder to lose work in Git than you think. But really, if your remote repository is setup correctly with protected branches, this should never happen.
- philpem 7y agoI've never worked at a company with protected branches... even though it's best-practice. "Because some day someone might need to push to master to do a hotfix". So I have a local git push hook which blocks master pushes :)