You're viewing a single thread.
View all comments
16
comments
How do you accidentally force push lol
15 0 ReplyI assume the accident was not to force push, but to the wrong branch
22 0 ReplyI hope they learned the value of protecting your branches.
15 0 ReplyThis is why I always
git push origin +branch_name
3 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...
8 0 ReplyGit rebase makes it possible getting used to do so
1 0 Reply
You've viewed 16 comments.
Scroll to top