Tuesday, September 4, 2012

subtree merge on GIT



Say merge a project A as a subtree to project B.
 git remote add -f b/a git+ssh://'git repo path'/a.git  
 git merge -s ours --no-commit b/a/master   
 git read-tree --prefix=b/a -u b/a/master   
 git commit -m "Subtree merged a"  

No comments:

Post a Comment