Skip to content

Instantly share code, notes, and snippets.

@rcerrejon
Created October 19, 2022 08:00
Show Gist options
  • Save rcerrejon/a4f7eb258390bd0bcfb437adcc1fd621 to your computer and use it in GitHub Desktop.
Save rcerrejon/a4f7eb258390bd0bcfb437adcc1fd621 to your computer and use it in GitHub Desktop.
Output in a file all changed files from a pull request
git archive -o fileschanged.zip HEAD $(git diff --name-only --diff-filter=d xxx)
# it excludes deleted files
# xxx = Branch name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment