Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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