how to use subtree
still working on it
How to use git subtree
1. Add a new repository as a subtree
# Example
# Add a new repository as a subtree
git subtree add --prefix=<prefix> <remote-name> <branch> --squash
# it is updated from the main repository
# push to subtree repository
git subtree push --prefix=src/subtree <remote-name/url> main(remote branch)
# update from subtree repository
git subtree pull --prefix=src/subtree <remote-name> main(remote branch) --squash
Enjoy Reading This Article?
Here are some more articles you might like to read next: