Created
November 22, 2013 14:31
-
-
Save rstriquer/7600754 to your computer and use it in GitHub Desktop.
Show git repository diff of all files creating a simple "/tmp/gitlist.text" file with all differences in it
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
#!/bin/bash | |
rm -rf /tmp/gitlist.text | |
for f in $(echo -e "`git status | awk -F" " '{printf "%s\n", $3}' | tail -n+6 | head -n-7`"); do | |
git diff $f >> /tmp/gitlist.text | |
echo >> /tmp/gitlist.text | |
done | |
less /tmp/gitlist.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment