🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #813

Re: [PATCH 2/2] doc: add new Git tutorial for beginners

#813
From: Ben Knoble
Date: Mon, 19 Oct 2026 16:49
86 lines
14109 bytes
> Le 19 oct. 2026 à 10:25, Julia Evans <julia@jvns.ca> a écrit :

Acknowledging the original was a long email to begin with,

>> On Wed, Oct 7, 2026, at 3:48 PM, D. Ben Knoble wrote:
>>> On Tue, Oct 6, 2026 at 3:37 PM Julia Evans via GitGitGadget
>>> <gitgitgadget@gmail.com> wrote:
>>> +[[step_2]]
>>> +Step 2: Introduce yourself to Git
>>> +---------------------------------
>>> +
>>> +The first time you use Git on a computer, it's a good idea to tell Git
>>> +your name and public email address. If you don't, you'll get a lot of
>>> +warnings from Git. To do this, run:
>>> +
>>> +------------------------------------------------
>>> +$ git config --global user.name "Namey McName"
>>> +$ git config --global user.email you@example.com
>>> +------------------------------------------------
>>> +
>>> +The name and email is so that other people you're collaborating with can
>>> +know who made the changes. You can set them to anything you want.
>>> +
>>> +To check if the name and email have been set, you can run these
>>> +commands:
>>> +
>>> +------------------------------------------------
>>> +$ git config user.name
>>> +$ git config user.email
>>> +------------------------------------------------
>> Ought we recommend the newer forms (git config set, git config get)?
>> Or is the idea to remain compatible with older versions, such as the
>> 2.32 I happen to have in /usr/bin on unsupported macOS 12.7.6 from
>> very old (?) XCode?

I think this got missed?

>>> +
>>> +Set your default branch name to `main`, by running this command.
>>> +Git is going to change its default branch name to `main` soon, so this
>>> +sets you up well for the future.
>>> +
>>> +------------------------------------------------
>>> +$ git config --global init.defaultBranch main
>>> +------------------------------------------------
>>> +
>>> +If there's no output, then it succeeded.
>>> +
>>> +Step 3: Create an empty folder and 2 files
>>> +------------------------------------------
>>> +
>>> +In your terminal, create an empty folder and change directories into it.
>>> +Later on you could follow the same steps in this tutorial to take an
>>> +existing project and start managing it with Git, but we're going to use
>>> +an empty project so that everyone following this tutorial has the exact
>>> +same files.
>>> +
>>> +For example, run these commands to make a folder called `myproject`
>>> +
>>> +------------------------------------------------
>>> +$ mkdir myproject
>>> +$ cd myproject
>>> +------------------------------------------------
>> I don't know, and I'll probably bias towards what you've already
>> written over asking for changes, but: does it make things any easier
>> to read and follow along with if we "git init myproject" instead?
>> Perhaps this version plants the seed that it's not too late to start
>> tracking any existing project, though, which is valuable :)
>> I wonder if you had some rationale for choosing this particular
>> sequence? Just curious, now.

And so was this.

Both are fairly minor in the grand scheme of things, so I’ll treat 
silence as « not interesting right now » and not be offended ;)

> Thanks for the review!

You’re quite welcome!
Technical Details
Message-ID: <F1D19B27-6BA9-456B-A43A-41D7B597F749@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72426-linux-kernel-git=dewy.ru
References: <3a38b208-2640-46a9-b486-9be614d71480@app.fastmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72426-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 2/2] doc: add new Git tutorial for beginners
Date: Mon, 19 Oct 2026 12:49:19 -0400
Organization: Usenet Network
Message-ID: <F1D19B27-6BA9-456B-A43A-41D7B597F749@gmail.com>
References: <3a38b208-2640-46a9-b486-9be614d71480@app.fastmail.com>
MIME-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3670515"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wjaimpI9KDA0Ih4OXKMPEX/UWjc= sha256:Z1z6z/RV+8oQeZ44ds7ddVmOeesPaJcRn06tyLiQ7NY=
	sha1:vFO/FKF9fVJ1cHzW05Uzhy8G3Sc= sha256:YsvoD1oqwnFGvbWZGH9EfoC5h5dlZewd81qF4UqYZp0=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 52996110A93; Mon, 19 Oct 2026 20:46:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DjuFezELIWU1;
	Mon, 19 Oct 2026 20:46:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72426-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id A4242110A36; Mon, 19 Oct 2026 20:46:02 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 2A239101F71; Mon, 19 Oct 2026 16:50:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792428573;
	b=2LAk7Tj5dpMIdpr41+JQPTr69v4tKpyVo0RVcmUe5bI4xFi4K8uXOAsDkLil998Wtanm
	 EtyyJz6sKTB24n9/+fqSc23dvrnF9w0QwHukS3wyPjqAQwkFKe/8YIGDIT6fEVPKAR1LN
	 F6xNNg5MYp7Jqc1YU6uoehRU3mDzh4uENuZjIL5nL2QYkD2rkA4l0f0AAocv767zmPQ78
	 kmnOc6waTV98SD9yt0HThdwPONnijW6I3HtBd9lOqOOnlwMNo+dAVU7Ps/38ToDerUWHn
	 fGeakMIFEr1Z6db0GOlZWEfo6IUmof10okHw0qy1N424KIush6OeifFvSI2Q9AGwVXw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792428573;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Content-Type:Content-Transfer-Encoding:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:Mime-Version:Subject:From:
	 In-Reply-To:Cc:Date:Message-Id:References:To:X-Mailer;
	bh=33o3gn95UmwKTu+g9Vj5LW85dihj8U4Z/GhgsYPC2qM=;
	b=j1pwNXSCmPzI4jR2CQMnti2XGt52Y8j1PBMII3ib5z1bLSpp8KfOcKr6Rcc8ShPbkVYy
	 GLDuNRjQ0jAjrNRudE83Xx5KhfVpQyIeyhoQjdatQm9CaHZAJLuwBUnFtwh5NWhEnzEgN
	 TeJoE6k5vUrjXsnxz7pcdFdoTeivgHzRd6pEoV9GJ063BUCv2N2xM311WDQKv9v9CdXo5
	 i5OOsYFg62qPmRskY+CHgJRnnXSLOEhMjeJLylox65T3Lu6FmqHmZ/hhewOxOij5KeojM
	 dw6261Ily4andfdvLfMr9yMc/jILvkvIrEl/BdN27CS6py56YXpfgCsQOmdlvOxWqwg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=KGZUC751;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 65FFF606A336;
	Mon, 19 Oct 2026 16:49:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=KGZUC751
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792428572;
	b=uuZogr4L7N1glyJkAerF1zyygFrtUXGb72GIg3bfKFqUR+Es+cO7vUzZPl21btG1zQI0
	 DG9GxC2ONh7/oXA6kwns++g+GmsXyBLeY50Y93XQPuREHVYetnSkbUcmmtAaooPHt7Twm
	 lhl6/tRF4uw+Yb33EfRvr+Pj92GE8PPAKM8vh7ujbL6c2sMOtXwu/z3v+1Dmd+t8O+3IH
	 sNZ3cP+NQhQpyquA3Fh1jif40450OxRSiACEm9BFdYnNX/iOPNKPZWnGnULQ0vmdf4pvB
	 9NtMA28zPe2VGMZ8UnFyNwBXyYjym2ASbzn4y7lQdVqmPEPm/iNP33AX27Vcxd2YGEA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792428572;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:From:
	 In-Reply-To:Cc:Date:Message-Id:References:To:X-Mailer;
	bh=33o3gn95UmwKTu+g9Vj5LW85dihj8U4Z/GhgsYPC2qM=;
	b=Cqw/miqJkvR5DfENTYJEjXtS93KpjP6vx2rEBjFhlVdV0QsseLmzVb7Rbvgb1gdRqznM
	 xKbLEDmFQlQ6e6e43DQnAJG4FF+ss6lDs7nw3IWbgGCCgZz0hV1fxPrlO1BC0JpVsLWli
	 iaTDHJxaV5u80r9lpyTElygN1MwBKYaZBuCLkzynwRFlASxnDPr8eQWJ949bnDQ78FmQk
	 kzGVZIOJoEAMSVBFuU6lghbrEftIyHmr+Z1bTFFtL1lpy3B7UM81S94v+tpIU7pTP545X
	 NMRyvS3F3H/itkkApdb2Ev2G54RWW/ECP15gUp2bU2rBUYCRqw9KFjKkf0RnR255QFQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=KGZUC751;
	arc=none smtp.remote-ip=74.125.224.51
X-Received: from mail-yx1-f51.google.com (mail-yx1-f51.google.com [74.125.224.51])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32F06606A319
	for <git@vger.kernel.org>; Mon, 19 Oct 2026 16:49:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 32F06606A319
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yx1-f51.google.com with SMTP id 956f58d0204a3-67489c8202cso1964099d50.3
        for <git@vger.kernel.org>; Mon, 19 Oct 2026 09:49:32 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1792428571; x=1793033371; darn=vger.kernel.org;
        h=to:references:message-id:date:cc:in-reply-to:from:subject
         :mime-version:content-transfer-encoding:content-type:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=33o3gn95UmwKTu+g9Vj5LW85dihj8U4Z/GhgsYPC2qM=;
        b=KGZUC751xSgKwRmfT34LVvv2g8Karvzedf76BGLCzr8xYlxLos4OE7/+sHSHqNO+WT
         oCDo7HHtnRyNlZ/9fo9Xd3+AuzUL4gXzTcJxmxiJwz6rtvYMF6liZ4/qDg0UHRY/hU5V
         CAizf2BswA7vqiHNZZwEdJnHVxoxqenqjOnlz5pa7morIMj6lFC4PbE02GI84HIFo5mt
         SVpZmhdZTW8K0veDSk4WMaZNGgyadV/Q5YNk30rpDZNl9jIoBAKFHRD59/XHVvgSujwl
         N2nCYKQHSShiPRCDVrcZQToao/BBKDp3JpFfVaqi79xck34MaV3LLtg2caDFsbk50l8j
         rphg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792428571; x=1793033371;
        h=to:references:message-id:date:cc:in-reply-to:from:subject
         :mime-version:content-transfer-encoding:content-type:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=33o3gn95UmwKTu+g9Vj5LW85dihj8U4Z/GhgsYPC2qM=;
        b=X2QFnEBi4T2ajp5dT3bSoUcEhkF85f0nPLmwouDhNRQ7c7ieKpDOAcH4qzi+j8Kvnj
         iYoD9Sd3Oh07GjGRXMQGagRgFmCGtCILrjn6qgvLjJtCeLcPH4RpX9U0TSn1QqYIzsdE
         zyFNMAP2HTDFcjHckok+G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5Aoj16bGQa/unT9C9y0W+KXkmFHN4OV0=
X-Received: by 2002:a05:690e:1183:b0:679:ad30:eff3 with SMTP id 956f58d0204a3-679ca83b62cmr2602741d50.64.1792428571078;
        Mon, 19 Oct 2026 09:49:31 -0700 (PDT)
X-Received: from smtpclient.apple ([2605:a601:9092:700:1909:b48c:a809:b114])
        by smtp.gmail.com with ESMTPSA id 956f58d0204a3-679b1e11207sm4275355d50.8.2026.10.19.09.49.29
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 19 Oct 2026 09:49:30 -0700 (PDT)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <3a38b208-2640-46a9-b486-9be614d71480@app.fastmail.com>
X-Cc: Julia Evans <gitgitgadget@gmail.com>, git@vger.kernel.org
X-Mailer: iPhone Mail (23D8133)