Skip to content

Instantly share code, notes, and snippets.

Last active December 31, 2018 15:21
What would you like to do?
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 because I didn't know you had to re-login into the gist site when already logged into github.
for F in `git status | grep modified | cut -f4 -d' '` ; do git checkout -- $F ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment