Skip to content

Instantly share code, notes, and snippets.

@rrennick
Last active Dec 31, 2018
Embed
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 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.
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