Is there such a thing as git pull --dry-run
to see how stuff will be merged before it messes up my working tree?
Right now I am doing:
git fetch origin && git merge --no-commit --no-ff
I did not see anything in the man page for 'git-pull' related to it.
To clarify, I just need it in an Ant script for deployment to see if there are conflicts when doing git pull
, then back off exit out of build, fail deployment and leave that directory tree the same it was before git pull
.