Created
May 25, 2016 09:38
-
-
Save ZoranJambor/58c2946a354f8c21f6b2aa4e28c37fdc to your computer and use it in GitHub Desktop.
Git Aliases
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
[alias] | |
# Restores a file removed from a repository | |
restore = !git checkout $(git rev-list -n 1 HEAD -- \"$1\")^ -- \"$1\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment