Skip to content

Instantly share code, notes, and snippets.

@michaellouieloria
Last active February 10, 2018 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 git@github.com:michaellouieloria/subtree-models.git
git remote add subtree-db git@github.com: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