Git Subtree
Git subtree allows you to split a subdirectory of your repository into its own repository and then merge that repository into another repository. This can be useful if you want to reuse code across multiple projects.
git subtree split --prefix=lib -b lib-branch
git push git@github.com:user/lib-repo.git lib-branch:master
git subtree add --prefix=lib git@github.com:user/lib-repo.git master
No comments:
Post a Comment