Gangmax Blog

Git Log Command

Some usefull “git log” commands.

From here.

1
2
3
4
5
6
7
8
# 1. Output git log with the first line only.
git log --pretty=oneline --abbrev-commit

# 2. Output the recent N log items.
git log -n 5

# Output log items in the given time period.
git log --pretty=oneline --abbrev-commit --after 2017-07-25 --before 2017-07-26

Comments