Skip to content

Instantly share code, notes, and snippets.

@sphvn
Created August 7, 2014 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sphvn/e0d9776a5e6dbb24c427 to your computer and use it in GitHub Desktop.
Save sphvn/e0d9776a5e6dbb24c427 to your computer and use it in GitHub Desktop.
git export changed files between hashes
sudo git checkout-index `git diff --name-only SHA1 SHA2` -f --prefix=/directory/
@sphvn
Copy link
Author

sphvn commented Aug 7, 2014

Get deleted file names

git diff --name-only --diff-filter=D SHA1 SHA2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment