Last active
December 14, 2015 07:19
-
-
Save HomenSimpsor/5050046 to your computer and use it in GitHub Desktop.
Edit the nth file currently modified and not staged for commit
This file contains hidden or 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
vim $(git diff --name-only | sed -n '2 p') | |
git checkout -f $(git diff --name-only | sed -n '2 p') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment