You're viewing a single thread.
All Comments
16 comments
How do you accidentally force push lol
12 0 ReplyI assume the accident was not to force push, but to the wrong branch
18 0 ReplyI hope they learned the value of protecting your branches.
12 0 ReplyThis is why I always
git push origin +branch_name
2 0 ReplyMy go-to these days is to push the current branch, dynamically.
git push origin HEADDepending on the VC, HEAD has different prefix/suffixes to make it work.
Edit: formatting, also I never checkout master I do origin/master so I cannot even push it with this method. I think
1 0 Reply
I was wondering the same. Any branch that has any logic besides a ci build attached to it should have been force push protected by default...
7 0 ReplyGit rebase makes it possible getting used to do so
1 0 Reply
16 comments
Scroll to top