On current Git, is there a material difference between git push --force-with-lease origin +somebranch
, git push --force-with-lease origin somebranch
which would one should prefer by default when I like to pull to work branch via
git pull --rebase origin master
?
I reported on force-with-lease
in 2013 for git 1.8.5, and March 2016 for git 2.8".
I would say... none of them.
A pull --rebase
is done to avoid having to force push (with or without lease) anything.
I simply set (since git 2.6)
git config pull.rebase true
git config rebase.autoStash true
That allows me do do some simple git pull
, followed by simple git push
(no forced push involved)