Last active
February 10, 2018 20:28
-
-
Save michaellouieloria/f03d797f707edc0893dd5d0c5bde7356 to your computer and use it in GitHub Desktop.
git subtree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete folders db and app/models in subtree-api and subtree-admin | |
add remote | |
git remote add subtree-models [email protected]:michaellouieloria/subtree-models.git | |
git remote add subtree-db [email protected]:michaellouieloria/subtree-db.git | |
add subtree | |
git subtree add --prefix=app/models subtree-models master | |
git subtree add --prefix=db subtree-db master | |
push to subtree | |
git subtree push --prefix=app/models subtree-models master | |
git subtree push --prefix=db subtree-db master | |
pull from subtree | |
git subtree pull --prefix=app/models subtree-models master | |
git subtree pull --prefix=db subtree-db master | |
https://www.youtube.com/watch?v=E7YWeRFHpXg | |
https://github.com/michaellouieloria/subtree-api | |
https://github.com/michaellouieloria/subtree-admin | |
https://github.com/michaellouieloria/subtree-models | |
https://github.com/michaellouieloria/subtree-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment