Skip to content

Instantly share code, notes, and snippets.

@andersonmadeira
Created October 31, 2018 21:01
Show Gist options
  • Save andersonmadeira/3b947c4bcf9fb050bfeebd9eeef219fd to your computer and use it in GitHub Desktop.
Save andersonmadeira/3b947c4bcf9fb050bfeebd9eeef219fd to your computer and use it in GitHub Desktop.
Exibir todos os arquivos que foram alterados em um determinado commit
# trocar hash pelo começo ou todo o hash do commit
git show --pretty="" --name-only hash
# Exemplo:
git show --pretty="" --name-only 8f9831a35767
# Pra exibir a quantidade de arquivos que foram alterados basta adicionar o wc com a opção -l
git show --pretty="" --name-only 8f9831a35767 | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment