Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Forked from tlberglund/gist:3208768
Last active February 11, 2018 00:13
Show Gist options
  • Save marknorgren/3adfa0a9da44dd75b235b485aaca5c39 to your computer and use it in GitHub Desktop.
Save marknorgren/3adfa0a9da44dd75b235b485aaca5c39 to your computer and use it in GitHub Desktop.
Live Log Script Git

$while true; do clear; tree -a; sleep 1; done

#!/bin/bash
while :
do
    clear
    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 $1
    sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment