I\'m testing the use of git-subtree to merge a library repo into a bigger project. It seems great in principle. Sometimes when I do a \"git subtree pull\" I get merge conflicts
It's not a solution to your root problem, but rather a mitigation of it. you can use
git merge -Xignore-space-change
to ignore space changes in your commits.
It's probably a problem with your line endings. you can try a --dry-run
alternative in merge (git merge
does not have --dry-run
option):
$git merge -Xignore-space-change --no-commit --no-ff $BRANCH
to see the changes before you actually commit them.
Use submodules to hold shared work. There is git-slave if you do a lot of work with shared and non-shared projects that need to be coordinated. Your line ending storage disparity will disappear.