NaN_
Category: Git
Last updated:
Git log hack

Sometimes you wonder “history commit git”. Use this command to hack git log or history on the current directory.

git log # yap, this basic commands git to saw history commit

Default output, a bit too much and messy right? Git Log Complex

So, break down some command hack for git log:

  1. git log : basic commands git to saw history commit.
  2. --format='%ae | %an' : change format output default git.
    • %ae : take author email.
    • | : pipe separator.
    • %an : take author name.
  3. | sort : throw hasil from git to terminal and sorting alphabet based email address.

After we filter and sort by email, clean and simple: Git Log User

Advanced hack for visual history:

  1. git log : basic commands git to saw history commit.
  2. -n 2 : limit output only for the last 2 commits.
  3. --oneline : condense each commit into a single line (hash + subject).
  4. --graph : draw a text-based graphical representation of the commit history.
  5. --all : show history for all branches, not just the current one.

Visual graph, now you see all flow branch clearly. whoahhh: Git Log Graph All

currently you know ~ see you again ^_^

This content is licensed under CC BY 4.0 . | Edit this page