I’m merging in a remote branch that may have a lot of conflicts. How can I tell if it will have conflicts or not?
I don’t see anything like a --dry-run on git-merge.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As noted previously, pass in the
--no-commitflag, but to avoid a fast-forward commit, also pass in--no-ff, like so:To examine the staged changes:
And you can undo the merge, even if it is a fast-forward merge: