Skip to content

Instantly share code, notes, and snippets.

@maurobaraldi
Created January 6, 2020 13:45
Show Gist options
  • Save maurobaraldi/a6a88dd0c8cc3b148a547e88ba9bdb47 to your computer and use it in GitHub Desktop.
Save maurobaraldi/a6a88dd0c8cc3b148a547e88ba9bdb47 to your computer and use it in GitHub Desktop.
Esse comando lista todas a branches de um repositorio, com o ID do ultimo commit, data, e autor.
git show-ref | awk '{print $2}' | xargs -I '{}' git log -n 1 --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment