threads / patch / 66934

patchdoc: mention the tutorial in 'man git'

Subject: [PATCH] doc: mention the tutorial in 'man git'

## tl;dr

4 messages between Nov 25, 2026 and Nov 27, 2026. Diffs are folded; open one to read it.

replies: 3people: 3as markdown or json

Julia Evans via GitGitGadget· Nov 25, 2026, 20:01 UTC · lore
From: Julia Evans <julia@jvns.ca>

Previously the tutorial was outdated, so we deleted it from git.adoc in e2e5e9f740 (doc: use `man git` to teach users how to navigate the docs, 2026-10-16).

Now that we have a new tutorial, bring it and 'gitdatamodel' back, using the same language as before.

Don't bring back the other documents, which are outdated.
Signed-off-by: Julia Evans <julia@jvns.ca>
---
    doc: mention the tutorial in man git
    
    ccing Kristoffer who I think is the most recent person to edit this.
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2334%2Fjvns%2Fmention-tutorial-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2334/jvns/mention-tutorial-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/2334
 Documentation/git.adoc | 3 +++
 1 file changed, 3 insertions(+)
Show changes to Documentation/git.adoc +3 −0
diff --git a/Documentation/git.adoc b/Documentation/git.adoc
index 1aa0608bae..13be4cdcd6 100644
--- a/Documentation/git.adoc
+++ b/Documentation/git.adoc
@@ -22,6 +22,9 @@ Git is a fast, scalable, distributed revision control system with an
 unusually rich command set that provides both high-level operations
 and full access to internals.
 
+See linkgit:gittutorial[7] to get started with Git. See linkgit:gitdatamodel[7]
+if you want to learn about the data model and important terminology.
+
 There are two ways to get help with any Git subcommand (replace "push"
 with the command you want help with):
 

base-commit: 77904e546de3bd940621092ecec47a88d0cede5d
-- 
gitgitgadget
Kristoffer Haugsbakk· Nov 27, 2026, 21:42 UTC · re: Julia Evans via GitGitGadget · lore

Re: [PATCH] doc: mention the tutorial in 'man git'

Reading through.
On Wed, Nov 25, 2026, at 21:01, Julia Evans via GitGitGadget wrote:
Show 5 quoted lines
> From: Julia Evans <julia@jvns.ca>
>
> Previously the tutorial was outdated, so we deleted it from git.adoc
> in e2e5e9f740 (doc: use `man git` to teach users how to
> navigate the docs, 2026-10-16).
Okay. That also removed gitdatamodel(7) because:
    mentioning the data model feels out of place once everything else is
    removed
>
> Now that we have a new tutorial,
This is 8f0635da (doc: add new Git tutorial for beginners, 2026-10-30).
> bring it and 'gitdatamodel' back,
> using the same language as before.

Does this patch/commit “logically” belong to the commit that you mention here? In other words, was it a small oversight and that is the reason why it is coming now? I ask because I know that you have long-term goals and are working by building on previous series that you’ve sent here.

Okay, so this is the structure of “Description” with this applied:
1. Git is fast, [...]
2. See gittutorial(7) to get [...] See gitdatamodel(7)
3. There are two ways [...] `git <cmd> -h` and `git <cmd> --help`
4. There are guides... [...] use `git help ...`
5. View HTML versions with `git help --web` [...]
I think this flows well and makes sense.

At first I was wondering why gitturial(7) and gitdatamodel(7) wasn’t moved to (4). But that doesn’t make sense. (2) mentions two important guides for beginners and those who are interested in the data model concepts, respectively. Meanwhile, (4) mentions how to access the guides with git-help(1). And there we just need to know where we can find the guides. It’s not a good place to shout out specific guides.

Acked-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Show 6 quoted lines
>
> Don't bring back the other documents, which are outdated.
>
> Signed-off-by: Julia Evans <julia@jvns.ca>
> ---
>[snip]
Junio C Hamano· Nov 27, 2026, 22:17 UTC · re: Kristoffer Haugsbakk · lore

Re: [PATCH] doc: mention the tutorial in 'man git'

"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 6 quoted lines
> Does this patch/commit “logically” belong to the commit that you mention
> here?
>
> In other words, was it a small oversight and that is the reason
> why it is coming now? I ask because I know that you have long-term goals
> and are working by building on previous series that you’ve sent here.

Very good point. There are certain "sequencing" requirements for these patches. Even without talking about Julia's long term goals, forking a topic to hold this patch as if it is independent from these two commits mentioned can make things inconsistent.

Thanks for raising it.
Julia Evans· Nov 27, 2026, 23:44 UTC · re: Junio C Hamano · lore

Re: [PATCH] doc: mention the tutorial in 'man git'

On 2026-11-27 5:17 p.m., Junio C Hamano wrote:
Show 14 quoted lines
> "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
>
>> Does this patch/commit “logically” belong to the commit that you mention
>> here?
>>
>> In other words, was it a small oversight and that is the reason
>> why it is coming now? I ask because I know that you have long-term goals
>> and are working by building on previous series that you’ve sent here.
> Very good point.  There are certain "sequencing" requirements for these
> patches.  Even without talking about Julia's long term goals, forking a
> topic to hold this patch as if it is independent from these two commits
> mentioned can make things inconsistent.
>
> Thanks for raising it.
I agree it doesn't logically belong in this commit. Basically what happened is that
1. I started a patch series to update git.adoc
2. I started a patch series to update the tutorial
3. patch series #1 was merged
4. patch series #2 was merged
I didn't know how to update patch series #2 (update tutorial) to update git.adoc after series #1 (update git.adoc) was merged, because my impression is that we're not supposed to rebase a branch on the latest master after it's been started. Hope that makes sense.
I'd love to understand better how to handle this kind of thing because I'm dealing with a similar issue right now in another series.
- Julia

← back to recent threads