Last active
August 29, 2015 14:02
-
-
Save ds82/e9aac5b9c1d1fd1955e1 to your computer and use it in GitHub Desktop.
Alias for fast & consistent commits of git submodule's in parent repo
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
[alias] | |
csm = ! sh -c 'pushd $0 >/dev/null && REV=$(git rev-parse HEAD|cut -c1-7) && popd && git add -A $0 && git commit -m \"submodule $0 -> $REV\"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment