Skip to content

Instantly share code, notes, and snippets.

@egel
Last active October 10, 2015 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egel/3c1104b49c1f024adeb9 to your computer and use it in GitHub Desktop.
Save egel/3c1104b49c1f024adeb9 to your computer and use it in GitHub Desktop.
Bash git loglive (refreshing git repository log)
#!/bin/sh
while true;
do
clear
echo "Git livelog: $(pwd)"
git log \
--graph \
--all \
--abbrev-commit \
--date=relative \
--stat=80 \
--color \
-10 \
--format=format:'%C(bold red)%h%C(reset) %C(bold magenta)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold blue) %an%C(reset)%C(auto)%d%C(reset)' \
| cat -
sleep 3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment