Skip to content

Instantly share code, notes, and snippets.

@bushong1
Last active August 29, 2015 14:15
Show Gist options
  • Save bushong1/980cbc1318b8c7845a9d to your computer and use it in GitHub Desktop.
Save bushong1/980cbc1318b8c7845a9d to your computer and use it in GitHub Desktop.
Git submodule management
#add new dependency
cd github-mirror
git submodule add <url/ssh> <namespace>/<project-name>/<branch>
cd <namespace>/<project-name>/<branch>
git checkout <branch>
cd ..
git add <branch>
git commit -m "Adding <namespace>/<project-name>/<branch>"
cd <branch>
#clamscan .
git bundle create ../../../bundles/<namespace>^^<project>^^<branch>.`date +"%Y%m%d_%H%M%S"`.initial.bundle <branch> --all
cd ../../..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment