🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3650

Re: [PATCH] doc: add tutorial on branches for beginners

#3650
From: "D. Ben Knoble"
Date: Mon, 23 Nov 2026 18:05
57 lines
14799 bytes
On Wed, Nov 18, 2026 at 7:43 AM Julia Evans <julia@jvns.ca> wrote:
>
> 1. It was a bit tougher to get test readers for this one even though so
> many people said they were interested in learning about branches and
> collaboration, and I'm not sure why. Almost everyone who completed it
> said that it took less than an hour. Maybe a table of contents would
> help folks understand the overall structure to see what they're getting
> into?

It certainly might! I also wondered how many of your test readers were
genuinely new to the ideas here, which can make it harder to get
readers.

> 2. This document is doing a pretty tricky dance where we're introducing
> some example Git workflows for collaboration without explaining remotes
> or upstreams, because the tutorial is already quite long, but
> ultimately the reason many people use Git is to collaborate and it feels
> silly to not talk about collaboration at all. I believe we gave at least
> a basic explanation of everything that is actually used in the example
> Git workflows but this will definitely leave some people with questions
> about how remotes work. We don't have a great place to point people to
> learn more about remotes. In the future it might make sense to write
> another guide on remotes and upstreams (maybe `git help remotes`?).

Yep, agreed. I've mulled on this a bit and will keep doing so---I have
some paternity leave coming up, so perhaps I'll find some time to
write in earnest. Mind doing some early feedback when I get there?

> 3. One of the test readers commented that they were confused by `git
> switch` because they're familiar with `git checkout`.
> So it might be better to also
> mention `git checkout`.

I waffle on this. It's probably easy to mention "switch is the modern
form, but you may see older guides teaching checkout" or something?
Any more than a sentence feels like another distraction, though, and
I'm also perfectly content to *not* mention checkout at all (and leave
that to folks to discover if they choose to).

> 4. Only using `git log --graph` for the branch diagrams is tough and a
> lot of people hard a hard time understanding the ASCII art diagrams.

Yeah, this is fair. "git show-branch" is probably harder to learn,
though presents similar information when it comes to "what's going on
with branches." I only mention it as a way to have *more* branch
diagrams :P

Anyway, I think my overall feeling is we want folks to learn how to
read log output (graph or not)---it's an important skill to working
with Git IMO. (What if there's no graphical environment available?) I
like how your approach sort of sneaks in the vegetables, too, and
future guides can build on that so folks get more exposure to and
build more confidence with the output.

-- 
D. Ben Knoble
Technical Details
Message-ID: <CALnO6CCiC3JzXx6=dMNXz4_=p7kGMFY7sAg50xJjcm65AJbcSA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76161-linux-kernel-git=dewy.ru
References: <pull.2307.git.1794259990263.gitgitgadget@gmail.com> <09bcad81-4bbf-4849-a3a4-a409f5ee5434@jvns.ca>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76161-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com ("D. Ben Knoble")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] doc: add tutorial on branches for beginners
Date: Mon, 23 Nov 2026 13:05:38 -0500
Organization: Usenet Network
Message-ID: <CALnO6CCiC3JzXx6=dMNXz4_=p7kGMFY7sAg50xJjcm65AJbcSA@mail.gmail.com>
References: <pull.2307.git.1794259990263.gitgitgadget@gmail.com> <09bcad81-4bbf-4849-a3a4-a409f5ee5434@jvns.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3947703"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4DjRJbVHPDJxtHgIbTZC88VB9ao= sha256:Gt2ewiw6QpUC1mszWS1vTdJvg4L7UyYsVjhTfevNDso=
	sha1:WgFfoCKior3JRlv9q5/b/uyrvQg= sha256:C+9PzDSvPbawn8u7W9k8I1UQ/L8R1t2ezQ34iqtaAfE=
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 143CB125DC1; Mon, 23 Nov 2026 21:06:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.249,
	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 0zfRcHgDLUSd;
	Mon, 23 Nov 2026 21:06:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76161-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9D6EE125DB9; Mon, 23 Nov 2026 21:05:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4DFB3238A5; Mon, 23 Nov 2026 18:05: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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795457152;
	b=Ysdrh1fne9GwWGWjsFfCDIHZzcDJxFtYVqR4OSKZCuhMCdGhdOLkplGGcmB2cTMCf4ZG
	 /kl8ED8f2Rng5LgqUYy5VYI+dtZs2ciAtb0PM2DNLkCv73PoM6ZaXW5RrcAERZSl9UJ80
	 XUGK90DC3tvzpRVB22MjcrE3JcALk+RyMZhiQlbSx76iItfsIVDNE9WIYbURMAh1VVl0V
	 bp6jS6tXDJsMwjjUNIKj3gl/LnTg3X3V/i96fVH81AAmW/NZUboZJhXj7GWrLN524vVPh
	 bYexVJ8xnaEUP6V2Oy/KhEZYz94EM1nVwXOtIQJHQfTk0Ue8G2n+8kX3nsIpMiQjhDA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795457152;
	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:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
	 Cc:Content-Type:Content-Transfer-Encoding;
	bh=qIPqkYHNYbI12qyjnWZlH54GfgPeotEQ0EBvowR340A=;
	b=maydD1bfT2LBlnAXvIpaHUIT66mzxqnDrYsYpH7vkQe6yXINbEjVARb5S5Ev3rMpcUdk
	 dePKWztSiY6y8y98SSA3eRqmDxJ7BKIyZ4jn8OzdhRv9K92EXtX63pExz6UmOi0RDamhp
	 ils6wNWDgfYMCuSnPIAoc4AKTPfTNQchIGi5VnQc8VIfnbN3P8wfvYFoFuks5EbhOG7I4
	 PMlX5mRcBrBxnqtCH97pcLoCGQNuR+Xk1waKpNiNGcz8uBl4xMeZtdi0gW2KQYJWZn60v
	 K5ZCrhFUjTPo77z3qlzH08mY15Z+zJajxqNpLVFiNE1qiVfvq3ymHzAyi5eQn9/6Ucw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=odEcAdIR;
	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 25868606A32D;
	Mon, 23 Nov 2026 18:05:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=odEcAdIR
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.216.48
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795457151;
	b=damAbL4NjkQEK1YQ1rmTWYlgvqymavOegi2OTGmEWOAyS0Ipclomh0NqCCplnRDXP9ip
	 xta6drYHOdVZeX61qRpRMqWC4vX30tQMN4/4GabKZI//z32AAG2LDoyi3WUCK8x4xKJrk
	 sAO+nnxHTN2+qR50+5iZaRksIToFyPhSM/U9KCWr+GKLEGC1m443EqxeZwYVIXMKhlbjr
	 v0uaqlnhJPGPjd5JeanvHVpWlpT5AXD48Zc6gnvMGJLQyHB06/aoN1QLs70KuqpUIevtE
	 pOoaDryQHR5H7XqWopETFbpOChz1MgUXqDLaRUvmJz3YFvP4y7qjEjdZ2+EyVEg7Vqw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795457151;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
	 Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
	bh=qIPqkYHNYbI12qyjnWZlH54GfgPeotEQ0EBvowR340A=;
	b=s9c/z2uqni2FkH1U2NdXsmuCjsZiwogNBRiH8MMptZzfaU3zbqjGOnthFficRYVTBoS6
	 uqcmeJOv3ZrfNBa5hvaimnX0lu6mywPFl3qvUkEzQA6Bt9KPNCBaHCL9C1x2o9WpA1TyP
	 oShc5Ie9CXdGcQWlV6e6uaEWkV0RPjC+6iyIqNW9cuW0ozDrDN1ImApeboE2EMxqu0hsP
	 TfsMi2sJoot5g6BlIeqthrbVCeMAawPi16KH3jafTZdGxjikp/bpY6nZyLlfCEgbLS8KM
	 lwxuQeskx1L1z+yQi1ezf98tkps8EiQO/j8FpycAD1ST/3ROTdcOjR2fXVrre6Fqnuw==
X-ARC-Authentication-Results: i=2; 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=20260707 header.b=odEcAdIR;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.216.48
X-Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48])
	(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 E7CBE606A31A
	for <git@vger.kernel.org>; Mon, 23 Nov 2026 18:05:50 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E7CBE606A31A
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-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3b40470fdd8so1718173a91.1
        for <git@vger.kernel.org>; Mon, 23 Nov 2026 10:05:50 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1795457150; cv=none;
        d=google.com; s=arc-20260327;
        b=Xi+sK4pSUgVjMyQt9N9Ese6q49n8JUaN0CJlqYFjYfvba8Zu2B/9XqKGGxyYaRSTOD
         UHi5taX6niacygzDRFcnbsqWsknr54GUzep1P0vS42PFfIvSDPVLVu14ImFhkppK89FA
         xUIzAjuyJpEx042XS1o2sYlP2E3bgigodesFOeVfpuQaBcu0XgHEdGBdSspJOQt5UKap
         hkkVPJbVvktNsIr6NiDS1e/LV7FzVNm65O1WVnyBxmtClna5Hhx7jyQpGm6cRrD+eTpL
         ZO9jbjdthj3ng9+OSw5e5IJsO4Dd3Sp6bSbv1ssE7h4MxLCZsP4dT7J92i7V9dZF8GAw
         0dxQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=qIPqkYHNYbI12qyjnWZlH54GfgPeotEQ0EBvowR340A=;
        fh=LIqhad+NoHa7UkcdeeYAFV6hhpuvO8N8/6+L/FmmQn0=;
        b=oHT130RhlRygIynqMOxbXuKT7Y45zjKfy7KP20jL++uyxfMWgT+K/WqtN7BdbxRDd6
         V/DD6hjgkMRU94B7UsW0vcSK/RN597lBwSKVHUE2WxJIYlIvni+PjMipklePU8qtULyb
         os0DjDOZnk3m7i9GtM90E8Wg6ALBlWBTlKz/H95c0JaehzIWFZ8uGH3u7zV/ivIaM4Fl
         xueIsNZ9nNvZyk3KjI1dgmNZujlTLu0MQ6FZf55Hy/lWuUXdX42jrhvgx8utETv+9A2P
         ICS2DJDC99EvD/b34TZ1aHRXuLF8eR+5ZN6r6Wyv6i1788Y8w3YXIArHaADAmSvo06ka
         IJqg==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795457150; x=1796061950; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=qIPqkYHNYbI12qyjnWZlH54GfgPeotEQ0EBvowR340A=;
        b=odEcAdIRpaaKeUuH08a5TAL/7viMa1EkubwoUZoMDaiRgiWNNh59e6eW365fm/yfb4
         4shu4Fw3UAux4qbT7fkVXARBzoegm+IZLt0MlGvQKb9jmOnS5cOqwtpfq3y2JIJ5/xAj
         LzNHWg2I/Fl9+YY2Yq31F0KAYOzX4cWjPPRWkxPUousRmGgrlnS0CDKeap16eWFm329J
         4lzK17t2eZ0JDH+zxtjRlEjleC/zJBSrzSTfiIGOPkSfTE26mEnhTiUMhAnrTyZfMTJa
         +7H02RrHEdWit8fpvwwC07kiMpJfzhyPc7Ey0EYnlUilsIQNljohaJSHtsQYOoIzvaYS
         CZnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795457150; x=1796061950;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=qIPqkYHNYbI12qyjnWZlH54GfgPeotEQ0EBvowR340A=;
        b=fMn16U7yFhGoepZ0grl5DK7Z1y0icDaVBp885WLYQOd0xmPHXOimWCgeoppk4BNwVL
         g1L7zFhCeCxolPCT5DjBAQcfFys2yaaJidR2kwxmsEkCSKmGzEGLZyoRi0yY2ykD9kqp
         X9+G2za/pbfRpgsiuZo+vqmw+lO3Pkykkepn/aEB4co5JGC11v5Xc/VkmtK1udaAkSOF
         fAZl8OW6+O9zv28ACSxeLWZ+SvWYWo2DeZggDmaYU5VygzRYRRcuXCoZMpOSc4hMaz+d
         TUSJAyiVEecBf+PJLov084xN3//7zfsXsyRR9a+Cy0s8EKvAGqFarX6qLXrpDv90xj8A
         XxZg==
X-Forwarded-Encrypted: i=1; AL+hErEFZgP2O/vETbabxsr5tmJGHg6B8Q734KC9Dl8hZXFPxB512Mos2SoEiQjoJKB1+rRAVKc=@vger.kernel.org
X-Gm-Message-State: APuU4Z85hJ56RlfST1bAZxF9xVUe79rIovWCfZQZg8WbHL2GAsu1pe+p
	4q/cqtjwnG1rY3BzQYjccsabS2LkzM2c8wtXvnJTHeM874jCPJJTeZAQ2jjTDAeXmcYqr4mLsIM
	hGpWJANnkqDi9OsrG4I13vhrVKYt6fcQ=
X-Gm-Gg: AZFdTZcuNNXZ4aIeXTfaOu9rCQavR0uetibN7GZwfpIn+mDXoLMT0BXtImOWVyzYiRc
	DGT9djuhtEqtMLbYzjsx1Ty0SOWcUAuDNetGdS2HntxhTRN+7CK3gM9pvwtGrmtGqnpo88y0Bgs
	2Fwyy811Wy/4xtArtYVo4BknhlBo2+lQDTfei2jQhn6baAmPkCc39ALML8PR/HLwO1yfF+gMgOU
	LmK/jD5lCQerAEihIOSUrv0ZDSCd+5f2SNH6q6s/Z7w7PdeO6j/+K9Jji4kAnXI/dtC/4YTP9dm
	iAeQ6xCC9p0ks3k3k61lCj2wUBkVVIbd2taVdI6jOd+VUm2h/eKpJC1ua/AKcICqH+46CTOSL3x
	pbW2LoR+Wd7wlEZrMIEtvnDbU1vsfTUedtUi1vjosFjx+ciptGr6V8Muwj0kuIJ9uXgoQV1YadO
	ABDLDi35Yg1VcpAwvo8NjDNhtLxs/tZuOUx7TxgLJU25bjNDpemyfDeGnJPDq9ywGYqHL9CtfDk
	FblAXeB1Df12PWDg2mz80t0ydH3CjXSpu9E
X-Received: by 2002:a17:90b:35c3:b0:39d:f08e:e6e7 with SMTP id
 98e67ed59e1d1-3b41c7d5bc0mr9859978a91.9.1795457150040; Mon, 23 Nov 2026
 10:05:50 -0800 (PST)
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: <09bcad81-4bbf-4849-a3a4-a409f5ee5434@jvns.ca>
X-Gm-Features: Aa3M54oDQMgyc8gYOQQyJyP4c0hdVWAg_5kGkSrcKxp2I1RYyA_FT6YCH2fhQnc
X-Cc: Julia Evans via GitGitGadget <gitgitgadget@gmail.com>, git@vger.kernel.org, 
	Patrick Steinhardt <ps@pks.im>