lemmyreader to [email protected]English • edit-27 months agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square37fedilinkarrow-up1485arrow-down110file-textcross-posted to: [email protected]
arrow-up1475arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader to [email protected]English • edit-27 months agomessage-square37fedilinkfile-textcross-posted to: [email protected]
minus-square@[email protected]linkfedilink1•edit-27 months agoUnless you’re rebasing or something, you should never need --force. It’s a good way to accidentally delete or overwrite a remote branch. I usually use the +syntax for force-pushing a specific branch: git push origin +my_branch
tl;dr
You dropped
--force
Unless you’re rebasing or something, you should never need
--force
. It’s a good way to accidentally delete or overwrite a remote branch.I usually use the +syntax for force-pushing a specific branch:
git push origin +my_branch
I thought
-a
is shorthand to amend my bad