lemmyreader to Linux@lemmy.mlEnglish • edit-21 year agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square37fedilinkarrow-up1505arrow-down110file-textcross-posted to: linuxfr@jlai.luopensource@lemmy.ml
arrow-up1495arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader to Linux@lemmy.mlEnglish • edit-21 year agomessage-square37fedilinkfile-textcross-posted to: linuxfr@jlai.luopensource@lemmy.ml
minus-square@xthexder@l.sw0.comlinkfedilink1•edit-21 year 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
minus-square@Benaaasaaas@lemmy.worldlinkfedilink1•1 year agoI thought -a is shorthand to amend my bad
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