Created
September 26, 2011 07:01
-
-
Save nsforge/1241753 to your computer and use it in GitHub Desktop.
Script to commit all current changes to the current git repo as well as all git submodules
This file contains 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
#!/bin/bash | |
git submodule foreach "git add ." | |
git submodule foreach "git commit -m \"$1\"" | |
git add . | |
git commit -m "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use, (assuming the script is in your PATH):