Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show first commit by 'git log'?

Tags:

git

I have a project which has long history. I want to show the first commit on git.

How do I do this?

like image 805
Nyambaa Avatar asked Mar 04 '11 02:03

Nyambaa


People also ask

How can I see my first commit in GitHub?

Usage. Go to any particular repo's landing page (e.g. like the one you're on) and click the bookmarklet, which will take you to the first page (initial commit). By default, it tracks the master branch, but if you change the branch on the landing page, it will go to that branch's first commit.

How do I search for a commit in git log?

If you have the hash for a commit, you can use the git show command to display the changes for that single commit. The output is identical to each individual commit when using git log -p .

How do I display a commit?

The HEAD reference always points to the last commit of the current branch. Therefore, you can use git-show to display the log message and diff output of the latest commit.

Which command used to show the commit logs?

The git log command displays a record of the commits in a Git repository. By default, the git log command displays a commit hash, the commit message, and other commit metadata.


1 Answers

I found that:

git log --reverse 

shows commits from start.

like image 105
Nyambaa Avatar answered Oct 07 '22 21:10

Nyambaa