lemmyreader@lemmy.ml to Linux@lemmy.mlEnglish · edit-211 months agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square35fedilinkarrow-up1484arrow-down110file-textcross-posted to: opensource@lemmy.ml
arrow-up1474arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader@lemmy.ml to Linux@lemmy.mlEnglish · edit-211 months agomessage-square35fedilinkfile-textcross-posted to: opensource@lemmy.ml
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up1·edit-211 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
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