Create a gist now

Instantly share code, notes, and snippets.

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
@obstschale

This comment has been minimized.

Show comment
Hide comment
@obstschale

obstschale May 12, 2013

Just watched your git advanced presentation at JavaZone. Awesome stuff! And thx for that nice git-loglive script

obstschale commented May 12, 2013

Just watched your git advanced presentation at JavaZone. Awesome stuff! And thx for that nice git-loglive script

@jdmanuel

This comment has been minimized.

Show comment
Hide comment
@jdmanuel

jdmanuel May 23, 2013

thanks. very useful

jdmanuel commented May 23, 2013

thanks. very useful

@gnomix

This comment has been minimized.

Show comment
Hide comment
@gnomix

gnomix Aug 10, 2013

indeed a good one!

gnomix commented Aug 10, 2013

indeed a good one!

@sebastianjt

This comment has been minimized.

Show comment
Hide comment
@sebastianjt

sebastianjt Aug 23, 2013

This is an awesome script.

Quick question: After it has run for a certain period of time it simply stops. It shows "(END)" at the very bottom and wont continue looping.

What can this issue be?

sebastianjt commented Aug 23, 2013

This is an awesome script.

Quick question: After it has run for a certain period of time it simply stops. It shows "(END)" at the very bottom and wont continue looping.

What can this issue be?

@tlberglund

This comment has been minimized.

Show comment
Hide comment
@tlberglund

tlberglund Oct 5, 2013

@sebastianjt Not sure! Is your log longer than the terminal window? Sometimes I'll run it with a commit limit (git loglive -15) to help things fit.

Owner

tlberglund commented Oct 5, 2013

@sebastianjt Not sure! Is your log longer than the terminal window? Sometimes I'll run it with a commit limit (git loglive -15) to help things fit.

@benedictchen

This comment has been minimized.

Show comment
Hide comment
@benedictchen

benedictchen Jan 9, 2014

This is awesome! Thank you.

benedictchen commented Jan 9, 2014

This is awesome! Thank you.

@benedictchen

This comment has been minimized.

Show comment
Hide comment
@benedictchen

benedictchen Jan 9, 2014

This is awesome! Thank you.

benedictchen commented Jan 9, 2014

This is awesome! Thank you.

@Netznarkose

This comment has been minimized.

Show comment
Hide comment
@Netznarkose

Netznarkose Jul 14, 2015

this helped me a lot getting into git, thank you

Netznarkose commented Jul 14, 2015

this helped me a lot getting into git, thank you

@taliaga

This comment has been minimized.

Show comment
Hide comment
@taliaga

taliaga May 15, 2016

Thanks Tim, btw, nice git talk!

taliaga commented May 15, 2016

Thanks Tim, btw, nice git talk!

@Netznarkose

This comment has been minimized.

Show comment
Hide comment
@Netznarkose

Netznarkose Aug 16, 2016

I just wanted to share a modification of this script. it shows the logs depending on the position of HEAD.

#!/bin/bash

while :
do
    clear
    git --no-pager log `git rev-parse HEAD` -n $* --graph --pretty=oneline --abbrev-commit --decorate
    sleep 1
done

git_loglive_netznarkose

Netznarkose commented Aug 16, 2016

I just wanted to share a modification of this script. it shows the logs depending on the position of HEAD.

#!/bin/bash

while :
do
    clear
    git --no-pager log `git rev-parse HEAD` -n $* --graph --pretty=oneline --abbrev-commit --decorate
    sleep 1
done

git_loglive_netznarkose

@madivad

This comment has been minimized.

Show comment
Hide comment
@madivad

madivad Jul 30, 2017

Nice snippet. I just caught your talk on YouTube. Thanks, it cleared up a lot of confusion. Side note, my dyslexia read this snippet as got-love :)

madivad commented Jul 30, 2017

Nice snippet. I just caught your talk on YouTube. Thanks, it cleared up a lot of confusion. Side note, my dyslexia read this snippet as got-love :)

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