Git Log
To show short commit id, date and commit title To view the code changed by commit id To show graph with last 5 lines To show all branchs
bash
git log --oneline --decorate=shortbash
git show-ref --tags --headsTo show short commit id, date and commit title
bash
git log --oneline --date=short --pretty=format:"%h %ad %s"To view the code changed by commit id
bash
git show -p 56d7cfd457To show graph with last 5 lines
bash
git log --oneline --graph --decorate -n 5To show all branchs
bash
git log --oneline --graph --decorate --all -10git/git-log.md
Related articles
- GitGit SubmodulesA practical guide to adding, updating, moving and removing Git submodules.
- GitGit CommandTo list all references
- GitGit Delete BranchSee which side introduced the current differences
- GitGit PullBreakdown Updating 1accfd5..b22e649 Your local branch was at commit 1accfd5. After pulling, it moved to commit b22e649. Fast-forward Git did not create a merge commit. Your local…