Skip to content

Instantly share code, notes, and snippets.

@viniceosm
Last active June 12, 2019 11:45
Show Gist options
  • Save viniceosm/5644edc949cc2001096f8d4ef55ec5ea to your computer and use it in GitHub Desktop.
Save viniceosm/5644edc949cc2001096f8d4ef55ec5ea to your computer and use it in GitHub Desktop.
comando git

Ver histórico de alterações de arquivo

git log -p filename

Ver arquivos commit

git log --name-only

Mostrar só o nome dos arquivos usados nos commits que pretende buscar

git log --name-only --grep='T5615' --pretty=format:""

Mostrar só o nome dos arquivos usados nos commits que pretende buscar (uniq)

git log --name-status <branch>..<branch> | grep -E '^[A-Z]\b' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment