Git using subtree
1. Adding subtree to current project
git remote add mysubproject git@github.com:iaghayev/mysubproject.git git subtree add --prefix=path/to/somedir mysubproject master |
2. Committing changes to subproject from path/to/somedir folder
git subtree push --prefix=path/to/somedir mysubproject master |
3. Getting latest code changes from subproject
git subtree pull --prefix=path/to/somedir mysubproject master |