Skip to content

Instantly share code, notes, and snippets.

@vecano
Created January 15, 2014 04:56
Show Gist options
  • Save vecano/8431043 to your computer and use it in GitHub Desktop.
Save vecano/8431043 to your computer and use it in GitHub Desktop.
Display a git repository's commit graph with live updates
#!/usr/bin/env sh
# Display a git repository's commit graph with live updates.
#
# I learned about Ben Hoskings' https://github.com/benhoskings/omglog
# (`gem install omglog`) project while watching PeepCode's "Advanced Git"
# course (now at
# http://pluralsight.com/training/Courses/TableOfContents/advanced-git).
# `omglog` shows the commit graph with live updating as commits are made,
# merged, and branched. It is particularly helpful when run on a secondary
# terminal window to inspect how the commit graph changes.
#
# This shell one-liner tries to achieve a similar result:
while true; do clear; git --no-pager log --decorate --oneline --graph --all -n 20; sleep 3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment