Skip to content

Instantly share code, notes, and snippets.

Created March 15, 2013 16:40
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 anonymous/5171214 to your computer and use it in GitHub Desktop.
Save anonymous/5171214 to your computer and use it in GitHub Desktop.
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.
for F in `git status | grep modified | awk -F ' ' '{ print $3; }'` ; do git checkout -- $F ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment