Skip to content

Instantly share code, notes, and snippets.

@rafakato
Created August 27, 2015 17:28
Show Gist options
  • Select an option

  • Save rafakato/d0ea8c6d23f105398fbe to your computer and use it in GitHub Desktop.

Select an option

Save rafakato/d0ea8c6d23f105398fbe to your computer and use it in GitHub Desktop.

Revisions

  1. rafakato created this gist Aug 27, 2015.
    10 changes: 10 additions & 0 deletions git-live-log.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash
    tput civis # hide cursor
    #trap "echo test" EXIT # this is not needed actually
    watch -n 15 -c -d -t "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"
    tput cnorm # restore cursor