𝕨𝕒𝕤𝕒𝕓𝕚 to Programmer [email protected]English • 2 years agoWe've all been therefeddit.deimagemessage-square16fedilinkarrow-up1297
arrow-up1297imageWe've all been therefeddit.de𝕨𝕒𝕤𝕒𝕓𝕚 to Programmer [email protected]English • 2 years agomessage-square16fedilink
minus-square𝕨𝕒𝕤𝕒𝕓𝕚OPlinkfedilink21•2 years agoI assume the accident was not to force push, but to the wrong branch
minus-square@[email protected]linkfedilinkEnglish3•edit-22 years agoThis is why I always git push origin +branch_name
minus-square@[email protected]linkfedilink1•edit-22 years agoMy go-to these days is to push the current branch, dynamically. git push origin HEAD Depending 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
minus-squaremagic_lobster_partylinkfedilink15•2 years agoI hope they learned the value of protecting your branches.
minus-squareDacoTacolinkfedilink8•2 years agoI 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…
minus-square@[email protected]linkfedilink1•2 years agoGit rebase makes it possible getting used to do so
How do you accidentally force push lol
I assume the accident was not to force push, but to the wrong branch
This is why I always
git push origin +branch_name
My go-to these days is to push the current branch, dynamically.
git push origin HEAD
Depending 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
I hope they learned the value of protecting your branches.
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…
Git rebase makes it possible getting used to do so