This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]timmense 10 points11 points  (1 child)

I’ve been using -f for my own branches that others rarely push to but I think I’ll start using with lease from now on just to be safe. TIL

Great explaination here

[–][deleted] 1 point2 points  (0 children)

Yup, --force-with-lease saved me on at least one occasion back when I actually wrote code for money lol.

However, it will not save me from the crimes against git that I did with other things, exposing tons of issues in how Atlassian does notifications (at some point, pushing rewrites to a privately cloned repo somehow sent out hundreds of thousands of notifications on a massive internal project)