Skip to content

Instantly share code, notes, and snippets.

@jakubnavratil
Last active April 9, 2020 10:18
Show Gist options
  • Save jakubnavratil/63ba5c889d3ab1586bd30c32976d93a0 to your computer and use it in GitHub Desktop.
Save jakubnavratil/63ba5c889d3ab1586bd30c32976d93a0 to your computer and use it in GitHub Desktop.

Changed files in specific commit

git diff-tree --no-commit-id --name-only -r f237

Tar changes in last 3 commits

tar zcvf changed.tar.gz `git diff --name-only HEAD~3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment