a git cheat sheet - Julia Evans

lemmyreader@lemmy.ml to Linux@lemmy.ml – 490 points –
39

You are viewing a single comment

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