Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 448 Bytes

the-alpha-commit.md

File metadata and controls

17 lines (11 loc) · 448 Bytes

The Alpha Commit

I like to read commit logs.

Today I wanted to see the first commit on a project. Here's what I used:

git rev-list --max-parents=0 HEAD

Show me the commits that led to HEAD in reverse chronological order; then limit that list to the commits with no parent.

Here's a small modification, to show the entire commit rather than the SHA alone:

git show $(git rev-list --max-parents=0 HEAD)