Skip to content

Instantly share code, notes, and snippets.

@michaellouieloria
Last active February 10, 2018 20:28
Show Gist options
  • Save michaellouieloria/f03d797f707edc0893dd5d0c5bde7356 to your computer and use it in GitHub Desktop.
Save michaellouieloria/f03d797f707edc0893dd5d0c5bde7356 to your computer and use it in GitHub Desktop.
git subtree
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