Created
January 15, 2014 04:56
-
-
Save vecano/8431043 to your computer and use it in GitHub Desktop.
Display a git repository's commit graph with live updates
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
#!/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