Last active
October 10, 2015 09:12
-
-
Save egel/3c1104b49c1f024adeb9 to your computer and use it in GitHub Desktop.
Bash git loglive (refreshing git repository log)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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