Skip to content

Instantly share code, notes, and snippets.

@ds82
Last active August 29, 2015 14:02
Show Gist options
  • Save ds82/e9aac5b9c1d1fd1955e1 to your computer and use it in GitHub Desktop.
Save ds82/e9aac5b9c1d1fd1955e1 to your computer and use it in GitHub Desktop.
Alias for fast & consistent commits of git submodule's in parent repo
[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