Skip to content

Instantly share code, notes, and snippets.

@Asinox
Created January 4, 2019 12:57
Show Gist options
  • Save Asinox/6d5c493333730a50c843942f13833693 to your computer and use it in GitHub Desktop.
Save Asinox/6d5c493333730a50c843942f13833693 to your computer and use it in GitHub Desktop.
How to recover a deleted file from local
git checkout <commit>^ -- <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment