lemmyreader@lemmy.ml to Linux@lemmy.mlEnglish · edit-21 year agoa git cheat sheet - Julia Evanscdn.masto.hostimagemessage-square35fedilinkarrow-up13arrow-down10file-text
arrow-up13arrow-down1imagea git cheat sheet - Julia Evanscdn.masto.hostlemmyreader@lemmy.ml to Linux@lemmy.mlEnglish · edit-21 year agomessage-square35fedilinkfile-text
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up0·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
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