Last active
August 29, 2015 14:15
-
-
Save bushong1/980cbc1318b8c7845a9d to your computer and use it in GitHub Desktop.
Git submodule management
This file contains hidden or 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
| #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