Git SubTree
Publish : Update :카테고리: Programming
git subtree command
Add subtree
git subtree add --prefix={local directory path} {repo} {branch}
Pull subtree
git subtree pull --prefix={local directory path} {repo} {branch}
Push subtree
git subtree push --prefix={local directory path} {repo} {branch}
git subtree –help
_git subtree_ [<options>] -P <prefix> add <local-commit>
_git subtree_ [<options>] -P <prefix> add <repository> <remote-ref>
_git subtree_ [<options>] -P <prefix> merge <local-commit>
_git subtree_ [<options>] -P <prefix> split [<local-commit>]
_git subtree_ [<options>] -P <prefix> pull <repository> <remote-ref>
_git subtree_ [<options>] -P <prefix> push <repository> <refspec>