4 years ago
p3k dots

Git yourself together.

Force-with-lease: an alternative to force push.

If the remote ref still points at the commit you specified, you can be sure that no other people did anything to the ref. It is like taking a “lease” on the ref without explicitly locking it, and the remote ref is updated only if the “lease” is still valid.

Relevant: Why Git blame sucks for understanding WTF code (and what to use instead).

Relevant 2: This website is designed to help you understand some basic git concepts visually.