lemmyreader to [email protected]English • edit-22 months agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square39arrow-up1503arrow-down110file-text
arrow-up1493arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader to [email protected]English • edit-22 months agomessage-square39file-text
minus-square@xthexderlinkfedilink1•edit-22 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
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