You're viewing a single thread.
All Comments
37 comments
tl;dr
git add . git commit -a git push
14 1 ReplyYou dropped
--force
4 0 ReplyUnless 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
1 0 ReplyI thought
-a
is shorthand to amend my bad1 0 Reply
37 comments
Scroll to top