git force-push for professionals

from blog blog, | ↗ original
git force-push for professionals tl;dr: Use --force-with-lease instead of --force to avoid overwriting upstream changes. Introduction 1st git rule: don’t force-push. But as an atendee of the rebase-i-make-my-own-history club, force push is necessary. But nevertheless overwrites happen, especially when multiple people work on the same branch. This...