Is it possible to determine if two git branches will merge cleanly without affecting the working dir

Posted by Andrew Cantino on Stack Overflow See other posts from Stack Overflow or by Andrew Cantino
Published on 2010-05-15T00:53:08Z Indexed on 2010/05/15 1:04 UTC
Read the original article Hit count: 262

Filed under:
|

You can determine with git merge-base if a fast forward is possible, but is there some git trick to determine if two branches will merge cleanly with some strategy without actually doing the merge? I know about "git merge --no-commit --no-ff $BRANCH" but that affects the working directory, which I'd like to avoid since this is part of a webservice.

© Stack Overflow or respective owner

Related posts about git

Related posts about github