You rebased your shared `feature/auth` branch. About to push — but a teammate may have pushed to it 5 minutes ago.
--force-with-lease aborts if remote moved unexpectedly. --force never does.
Medium · 2 steps · +500 XP
This scenario walks through 2 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git fetchgit push --force-with-leaseAlways prefer --force-with-lease. It saves teammates' work.