Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git export changed files between hashes
sudo git checkout-index `git diff --name-only SHA1 SHA2` -f --prefix=/directory/
@sphvn

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.