lemmyreader to Linux@lemmy.mlEnglish • edit-211 months agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square38fedilinkarrow-up1492arrow-down110file-text
arrow-up1482arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader to Linux@lemmy.mlEnglish • edit-211 months agomessage-square38fedilinkfile-text
minus-square@xthexder@l.sw0.comlinkfedilink1•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
minus-square@Benaaasaaas@lemmy.worldlinkfedilink1•11 months 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