Skip to content

Instantly share code, notes, and snippets.

@tlberglund
Last active April 14, 2022 14:00
Star You must be signed in to star a gist
Embed
What would you like to do?
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@algonzalez
Copy link

Added a version that will run on Microsoft Windows: https://gist.github.com/algonzalez/f8af7a727248b2a53ed2bcc62bcc56ba

@Friedrich42
Copy link

Friedrich42 commented Sep 24, 2021

Recently watched your talk on javazone, just loved id!

Btw, you can also use watch command instead of while loop in bash

watch -cwt unbuffer git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment