Created
May 18, 2017 19:19
-
-
Save karl82/984549af672618792ed4eaebe8726293 to your computer and use it in GitHub Desktop.
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
# Better handling modified files | |
git status --porcelain --untracked-files=no| awk '/^.M/ { print $2;}' | while read file; do | |
hash=$(git log -n 1 --pretty=format:%h -- $file) | |
git commit --fixup $hash $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment