Re: Question: regarding understanding code base
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 15, 2025, 00:43 UTC
- Message-ID
- <xmqqldpt6dht.fsf@gitster.g>
- In-Reply-To
- <CA+rGoLehMUWPMBrZ1hOk-GBQBCvSY0_ivFCn1w1C-V_bGTDgZg@mail.gmail.com>
JAYATHEERTH K <jayatheerthkulkarni2005@gmail.com> writes:
> What I meant was: > You previously suggested that one good way to understand Git is to > start from the initial commit of the Git repo and move forward > chronologically through the commits.
Not at all. I only suggested to study the initial one. It is more like biology students learning the common principles that apply to all kinds of life by studying a lot simpler organism as a model, instead of studying a lot higher order ones like mammals.
Moving forward is all your invention or hallucination ;-)
Show 13 quoted lines
> - Start from the initial commit of a repository > > - Walk forward through history (one commit at a time) probably which > changes my file system (I currently use a terminal based command) > > I use > git rev-list --reverse HEAD | while read commit; do > echo "=== Commit: $commit ===" > git show --color --stat --patch --pretty=fuller "$commit" > read -p "Press enter to continue to the next commit..." > done > > I wanted to know if there are any better ways
Like "git log --reverse -p"?