Skip to content

Instantly share code, notes, and snippets.

@ZoranJambor
Created May 25, 2016 09:38
Show Gist options
  • Save ZoranJambor/58c2946a354f8c21f6b2aa4e28c37fdc to your computer and use it in GitHub Desktop.
Save ZoranJambor/58c2946a354f8c21f6b2aa4e28c37fdc to your computer and use it in GitHub Desktop.
Git Aliases
[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