Skip to content

Instantly share code, notes, and snippets.

@Gummibeer
Last active May 30, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gummibeer/c93a826d417b7dd3e2deeeb920db5053 to your computer and use it in GitHub Desktop.
Save Gummibeer/c93a826d417b7dd3e2deeeb920db5053 to your computer and use it in GitHub Desktop.
Send a single commit for every changed file
git status --porcelain | while read -r a; do if [[ $a == M* ]] ; then FILE=`echo "$a" | awk '{print $2}'`; git commit -m "[ISSUE] $FILE" $FILE; fi done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment