Thread View: linux.kernel.git
9 messages
9 total messages
Started by Junio C Hamano
Tue, 20 Oct 2026 17:11
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 17:11
Date: Tue, 20 Oct 2026 17:11
86 lines
15607 bytes
15607 bytes
"Julia Evans via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Julia Evans <julia@jvns.ca>
>
> This tutorial covers:
>
> 1. Creating an empty repo with `git init`
> 2. Making commits with `git add`, `git commit`, `git diff`, and
> `git status`
> 3. Pushing to code to a Git host on the internet, including creating an
> SSH key
>
> Signed-off-by: Julia Evans <julia@jvns.ca>
> ---
The goal is well described, and overall the tutorial is well-paced
and avoids common beginner traps. Since Ben has covered the text
fairly well, the remainder of this message has just some leftover
nitpicks.
> +Step 10: Create an SSH key (if needed)
> +-------------------------------------
Even though AsciiDoc implementations are somewhat lenient to allow
difference by a char or two, but the number of hyphens there must
match the number of chars on the previous line, so add one '-'.
> +For Git to upload changes to another Git repository, it needs a way to
> +login to that repository. One of the most popular ways to do this is
> +with an SSH key.
> +
> +If you don't already have an SSH key, you'll need to create one. On Mac
> +or Linux, you can check if you already have an SSH key by running:
> +
> +-------------------------------------------
> +$ ls ~/.ssh/*.pub
> +-------------------------------------------
> +
> +If you don't already have an SSH key, run:
> +
> +-------------------------------------------
> +$ ssh-keygen
> +-------------------------------------------
It may depend on the system settings, but doesn't this by default
still create id_rsa.pub? I wonder if we want
$ ssh-keygen -t ed25519
so that it will match what the users will find in the next "Step 11".
> +Step 11: Tell the Git host your SSH public key
> +----------------------------------------------
> +
> +First, find your SSH key like this (on Mac or Linux):
> +
> +-------------------------------------------
> +$ ls ~/.ssh/*.pub
> +-------------------------------------------
> +
> +That will output something like
> +
> +-------------------------------------------
> +/home/alice/.ssh/id_ed25519.pub
> +-------------------------------------------
> +
> +Copy the contents of that file to your clipboard. It's important that
> +the filename ends in `.pub` ("pub" stands for "public").
OK. I hope users won't paste the ls output above instead by
mistake, but perhaps giving a command like "cat ~/.ssh/id_ed25519.pub"
may make this step harder to make mistakes?
> +Then login to your account on the Git host you chose and paste the SSH
> +key into the appropriate place. Depending on the Git host, it's likely
> +under "SSH keys" in your settings. If it asks you what type of SSH key,
> +look for something like "Authentication Key".
> +
> +Once you've done this, you're done! Git will automatically use your SSH
> +key to try to connect.
> +Step 14: push your changes
> +--------------------------
Upcase "Push your changes" to match other steps.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 18:26
Date: Tue, 20 Oct 2026 18:26
23 lines
13973 bytes
13973 bytes
Julia Evans <julia@jvns.ca> writes: > From the release notes it looks like ed25519 has been the default > since 2023: https://www.openssh.org/txt/release-9.5 . > I’m not sure what the default was before that, though I also thought > the default was still RSA so maybe it was RSA. Changed in 2023 in upstream likely means many users on mainstream distros may still be using the old default. > I’m inclined to suggest that people just use SSH’s default, since as we move > towards post-quantum cryptography, openssh might change its default key type > again, and if that happens we’d want folks to use the new default instead of > going back to ed25519. I very much agree, but (1) you described that the goal of this document was to get the users going as quickly as possible, and giving them the securest possible setting is out of the scope, and (2) we would need to think what to do with the example in the next step if we leave it the default here. The answer to the latter could be to update it to "something like ... but the filename may differ depending on the default type of the key".
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 18:27
Date: Tue, 20 Oct 2026 18:27
16 lines
13156 bytes
13156 bytes
Julia Evans <julia@jvns.ca> writes: >> The goal is well described, and overall the tutorial is well-paced >> and avoids common beginner traps. Since Ben has covered the text >> fairly well, the remainder of this message has just some leftover >> nitpicks. My local build of 'seen' just saw these: gittutorial.adoc:124: section delimiter not preceded by an empty line gittutorial.adoc:487: section delimiter not preceded by an empty line I haven't checked what these two lines contain yet. Thanks.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 18:30
Date: Tue, 20 Oct 2026 18:30
25 lines
13761 bytes
13761 bytes
Julia Evans <julia@jvns.ca> writes: >> >>> +Step 10: Create an SSH key (if needed) >>> +------------------------------------- >> >> Even though AsciiDoc implementations are somewhat lenient to allow >> difference by a char or two, but the number of hyphens there must >> match the number of chars on the previous line, so add one '-'. > > I meant to reply to this one. I wonder if it would be better to > update all the headings to use a different form, like this, because > it’s easy to accidentally get the number of `-` characters wrong when > editing a heading. > > == Step 10: Create an SSH key (if needed) > > I don’t feel strongly about that though, happy to stay consistent > with how other pages do it. As we are getting rid of the old contents altogether and starting a fresh document whose name happens to be the same one as we have been using for a long time, consistency within a single document may be sufficient.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 18:45
Date: Tue, 20 Oct 2026 18:45
20 lines
13360 bytes
13360 bytes
Junio C Hamano <gitster@pobox.com> writes: > Julia Evans <julia@jvns.ca> writes: > >>> The goal is well described, and overall the tutorial is well-paced >>> and avoids common beginner traps. Since Ben has covered the text >>> fairly well, the remainder of this message has just some leftover >>> nitpicks. > > My local build of 'seen' just saw these: > > gittutorial.adoc:124: section delimiter not preceded by an empty line > gittutorial.adoc:487: section delimiter not preceded by an empty line > > I haven't checked what these two lines contain yet. Now I have. It was the underline-hyphen thing. The earlier one is for Step 3. I missed, and the later one is what I pointed out in the nitpick.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Tue, 20 Oct 2026 19:13
Date: Tue, 20 Oct 2026 19:13
50 lines
14436 bytes
14436 bytes
Junio C Hamano <gitster@pobox.com> writes: > Junio C Hamano <gitster@pobox.com> writes: > >> Julia Evans <julia@jvns.ca> writes: >> >>>> The goal is well described, and overall the tutorial is well-paced >>>> and avoids common beginner traps. Since Ben has covered the text >>>> fairly well, the remainder of this message has just some leftover >>>> nitpicks. >> >> My local build of 'seen' just saw these: >> >> gittutorial.adoc:124: section delimiter not preceded by an empty line >> gittutorial.adoc:487: section delimiter not preceded by an empty line >> >> I haven't checked what these two lines contain yet. > > Now I have. It was the underline-hyphen thing. The earlier one is > for Step 3. I missed, and the later one is what I pointed out in the > nitpick. Regarding the topic in your other message, this discussion helps us contrast the two styles offered by AsciiDoc. The Atx-style headers, e.g., = This is a first level header == this is a second level header free us from the need to count characters for Setext-style headers, e.g., This is a first level header ============================ This is a second level header ----------------------------- Besides, counting characters becomes tricky once we step outside US-ASCII anyway, which is another reason to prefer the modern Atx-style prefix format. I find it somewhat harder to notice when a section is at the wrong level in a document using Atx-style headers. With Setext-style, the long underline makes mismatches stand out; indeed, that is how I caught a handful of mistakes over the course of this project that I suspect I otherwise wouldn't have found. Once found, however, such a mistake is easier to correct.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Wed, 21 Oct 2026 17:16
Date: Wed, 21 Oct 2026 17:16
18 lines
13396 bytes
13396 bytes
Junio C Hamano <gitster@pobox.com> writes: > ... indeed, that is how I caught a handful of mistakes over the > course of this project that I suspect I otherwise wouldn't have > found. Once found, however, such a mistake is easier to > correct. Sorry, but re-reading my previous message, I realize my preference was not very clear. The last sentence there should have ended with "easier to correct with the ATX-style prefix format." I do not have a strong preference either way myself. However, this is practically a brand-new document. If you think it would be easier to adopt and stay consistent with the prefix format, I am happy to go with that direction. Thanks.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Mon, 26 Oct 2026 20:17
Date: Mon, 26 Oct 2026 20:17
20 lines
13725 bytes
13725 bytes
"Julia Evans" <julia@jvns.ca> writes: >> In short, if it mentions of someone using ssh and vim, I immediately >> think they are a Linux user, and I may tend to skip those parts of an >> article, or even assume the whole thing is not aimed at me. > > This makes sense to me, and I agree it's important to be careful about > how we talk about SSH and vim for the reasons you say. > > I think a lot about how to make sure that the Git documentation is > trustworthy and credible, and when we suggest using tools that are > unfamiliar or not commonly used, it reduces credibility and makes it > more likely that people will leave to find information somewhere else. OK, so shall I mark the topic on hold until you decide if I should expect a reroll or we'll address the above in follow-up changes in other topics in future? Thanks.
Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Author: Junio C Hamano
Date: Mon, 26 Oct 2026 20:54
Date: Mon, 26 Oct 2026 20:54
10 lines
13293 bytes
13293 bytes
"Julia Evans" <julia@jvns.ca> writes: >> OK, so shall I mark the topic on hold until you decide if I should >> expect a reroll or we'll address the above in follow-up changes in >> other topics in future? > > I'll aim to send a new version this week. Thanks. Marked as "Expecting a reroll."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads