a git cheat sheet - Julia Evanslemmyreader@lemmy.ml to Linux@lemmy.ml – 490 points – 6 months agocross-posted from: https://lemmy.ml/post/14581344 https://social.jvns.ca/@b0rk/112288027169476498 39Post a CommentPreviewYou are viewing a single commentView all commentsShow the parent commentYou dropped --forceUnless 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_branchI thought -a is shorthand to amend my bad
You dropped --forceUnless 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_branchI 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_branchI thought -a is shorthand to amend my bad
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