GIT - Subtrees

less than 1 minute read

Setup

git remote add <MY-SUBTREE> git@github.com:<USER>/<SUBPOJECT>.git
git subtree add --prefix=<MY-SUBTREE>/ <MY-SUBTREE> master

Pull changes from sub-repo

git subtree pull --prefix=<MY-SUBTREE> <MY-SUBTREE> master

Push changes to sub-repo

 

Tags: , ,

Categories:

Updated: