Skip to content

Instantly share code, notes, and snippets.

@andersonmadeira
Created October 31, 2018 20:59
Show Gist options
  • Save andersonmadeira/eedf406d6ad38693b5f5551b66d5ece6 to your computer and use it in GitHub Desktop.
Save andersonmadeira/eedf406d6ad38693b5f5551b66d5ece6 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