I am trying to understand the difference between
git push --force
and
git push --force-with-lease
My guess is that the latter only pushes to the remote if the remote has commits that the local branch doesn’t have?
I am trying to understand the difference between
git push --force
and
git push --force-with-lease
My guess is that the latter only pushes to the remote if the remote has commits that the local branch doesn’t have?