Skip to content

Instantly share code, notes, and snippets.

@donpandix
Created May 23, 2022 23:56
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 donpandix/5d21a4a3dbfb5758ce8e8c2fc029cb3e to your computer and use it in GitHub Desktop.
Save donpandix/5d21a4a3dbfb5758ce8e8c2fc029cb3e to your computer and use it in GitHub Desktop.
Obtener los archivos modificados entre dos commits
# Obtiene la lista de los archivos modificados
git diff --name-only SHA1 SHA2
# Obtiene la lista de los archivos modificados entre dos commits y almacendaos en un ZIP
git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment