Hacker News new | ask | show | jobs
How I Messed Up Our Repo and Ideas for Improving Git UX (medium.com)
8 points by maxheiber 3605 days ago
3 comments

User does a git force push and bad things happen to the repo. Naturally git and github are at fault for allowing this to happen? It seems a better solution is not to do a force push or to turn on 'protected branches' in github than to try to improve git's usability.
It could easily have been avoided if everyone on the team used their own fork and committed to the master repo via merge requests. Set up protected branches on the master and then only force push to your own fork. No way to accidently ruin someone else day :)
I recommend

[push]

    default = current
Usually you only want to push the current branch.