Breaking News

Viewing Git Logs

Some common git log comments that I use heavily.

# view git logs
git log

#limit number of logs to show
git log -n 1 # last commit
git log -n 5 # last 5 commits
git log –since=2017-06-01
git log –until=2017-06-01

git log –author=”Ankan Basu”

git log –grep=”init” # look for changes in the commit message
git log –grep=”bug” # log for commit messages with bug fixes.


git log –oneline

git log –format=oneline

git log –graph

git log –oneline –graph –all –decorate

 738 total views,  1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.