Jump to content

Git log: Difference between revisions

From Squishu Wiki
Created page with "== Commands == * display all commit log entries from ALL BRANCHES. Normally git log displays only the entries from the current branch ** git log --oneline --all * display the history in a simplified form ** git log --simplify-by-decoration --decorate --all --oneline"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Commands ==
== Commands ==
* show commit id and comment
** git log --oneline
* display all commit log entries from ALL BRANCHES.  Normally git log displays only the entries from the current branch
* display all commit log entries from ALL BRANCHES.  Normally git log displays only the entries from the current branch
** git log --oneline --all
** git log --oneline --all
* display the history in a simplified form
* display the history in a simplified form
** git log --simplify-by-decoration --decorate --all --oneline
** git log --simplify-by-decoration --decorate --all --oneline
* show one line per commit, and list each file changed per commit
** git log --shortstat --oneline
* show just two lines
** git log -2 or git log -n 2

Latest revision as of 09:28, 20 December 2025

Commands

  • show commit id and comment
    • git log --oneline
  • display all commit log entries from ALL BRANCHES. Normally git log displays only the entries from the current branch
    • git log --oneline --all
  • display the history in a simplified form
    • git log --simplify-by-decoration --decorate --all --oneline
  • show one line per commit, and list each file changed per commit
    • git log --shortstat --oneline
  • show just two lines
    • git log -2 or git log -n 2