Skip to content

Instantly share code, notes, and snippets.

@cleberdantas
Created July 4, 2014 14:44
Show Gist options
  • Save cleberdantas/143a3e84a5d9f6748fbb to your computer and use it in GitHub Desktop.
Save cleberdantas/143a3e84a5d9f6748fbb to your computer and use it in GitHub Desktop.
Ajuda a visualizar alterações no repositório de maneira instantânea (copiado de algum lugar)
#!/bin/bash
while :
do
clear
if [ "$1" == "" ]; then
git --no-pager log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
else
git --no-pager log -$1 --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
fi
sleep 1
done
@cuchas
Copy link

cuchas commented Jul 7, 2014

Olha o Git log ai Clebá! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment