Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



I'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 :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: