Linux/Mac command line for reverting file modification changes that have not been committed. Does not include removing files that were added to the repo.Originally posted at https://gist.github.com/anonymous/5171214 because I didn't know you had to re-login into the gist site when already logged into github.
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
|for F in `git status | grep modified | cut -f4 -d' '` ; do git checkout -- $F ; done|