Search

git log

๐Ÿ’ก
Requirements
๐Ÿ“Œ
To follow this setup, it is required to have following โ€ฆ
โ€ข
No Requirements
Log [git log]
Shows the commit logs.
List commits that are reachable by following theย parentย links from the given commit(s), but exclude commits that are reachable from the one(s) given with aย ^ย in front of them. The output is given in reverse chronological order by default.
Synopsis [git log --<synopsis>]
git log [<options>] [<revision-range>] [[--] <path>โ€ฆ]
YAML
๋ณต์‚ฌ
Commonly Used Commands
โ€ข
View changes
โ—ฆ
git log -p
โ€ข
Set # of logs
โ—ฆ
git log -<# of commits>
โ€ข
View in stats
โ—ฆ
git log --shortstat
โ€ข
View briefly
โ—ฆ
git log --oneline
โ€ข
Search logs
โ—ฆ
Search from changes
โ–ช
git log -S <Word to search>
โ—ฆ
Search from the commit messages
โ–ช
git log --grep <word to search>
โ€ข
View log graph
โ—ฆ
git log --all --decorate --oneline --graph
โ—ฆ
git log --graph --all --pretty=format:'%C(yellow) %h %C(reset)%C(blue)%ad%C(reset) : %C(white)%s %C(bold green)-- %an%C(reset) %C(bold red)%d%C(reset)' --date=short

Reference