Skip to content

Instantly share code, notes, and snippets.

@grigorye
Last active June 20, 2018 07:59
Show Gist options
  • Save grigorye/7484733 to your computer and use it in GitHub Desktop.
Save grigorye/7484733 to your computer and use it in GitHub Desktop.
# adding remote
git remote add module [email protected]:user/module.git
# updating remote
git fetch module
# updating remote (tag)
git fetch Weaver 0.9.9
# adding subtree (master)
git subtree add -P module --squash -m "Added module as a subtree." module/master
# adding subtree (tag)
git subtree add -P GitSubtrees/Weaver --squash -m "Added Weaver 0.9.9 as a subtree." Weaver 0.9.9
# merging subtree changes
git subtree merge -P module --squash -m "Merged changes from module." module/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment