Created
July 28, 2015 09:07
-
-
Save Pindar/a148a46801a923c5eba1 to your computer and use it in GitHub Desktop.
git commands
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
# restore file | |
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file" | |
# stage files with review | |
git add -p . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment