Git - Log (Commit History)


The commit log (log or commit hisotry) is a directed acyclique graph of commit.

Example of commit log:

CA1--CA2--CA3 <-- Branch A (last commit CA3)
 C1--C2--C3 <-- master (last commit C3)
         CB1--CB2 <-- Branch B (last commit CB2)

Each leaf commit is a branch.

Each time a commit is performed a node in the log graph is added.


Git has two visual log:

  • the log
  • and a short log

Last commit HEAD

The last commit of the current branch (the HEAD)

git log -n 1


git log --format=fuller
git log --pretty=oneline


  • Commit by commiter
git shortlog -s -n 


Documentation / Reference

Discover More

is a content-addressable file system used to track directory tree content (as defined by its creator Linux Torvald) It's not a version control...
Git - Analytics

Git - Analytics
Git Commit Tree Data Model
Git - Commit

A commit in git is an object that stores the information : who saved the file system snapshots, when they were saved, why they were saved. the commiter the author the parent commit It's...
Git - Committer

The committer is the person who committed the code or applied the patch on behalf of the original author. It's generally a project maintainer or core member. The default Committer is the OS user. ...
Git - File

File management in Git (blob and not directory) blob object on the local file system or not (ie in the git file system database) See and short status A file (or blob) identifier is the...
Git - Head (Head Branch | Branch Head)

The head is the last commit of a branch. while the HEAD (in uppercase) is the head of the current branch (active branch). headHEADcurrent branch page In the example below, the branch head of: ...
Git - History

The application history in Git is known as the Commit Log. To see all historical operations, you should then use the log command.
Git - Merge

Merge is a git merge tool that is designed to integrate changes from one branch into another branch It joins two or more branch together (ie development histories) The pull command is a wrapper that...
Git - Show

git show is a general command line tool that shows information object where hash is the object hash for commits it shows the log message and textual diff. It also presents the merge commit in a...
Git - Tag

This page is tagging in git Git has the ability to tag specific points in history as being important. Typically this functionality is used to mark release points (v1.0, and so on). Git uses two main...

Share this page:
Follow us:
Task Runner