Safer Force Pushes
After rebasing your feature branch, you need to force-push it. Why use --force-with-lease instead of --force?
--force-with-lease
--force
Choose one answer
It only works when the branch is protected, which makes it safer.
It keeps a backup branch on the remote with the old commits for 30 days.
It refuses to overwrite commits on the remote that you haven't seen.
It also pushes all tags along with the branch.