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
