]> git.ipfire.org Git - thirdparty/git.git/commitdiff
amend! doc: git-worktree: Add side by side branch checkout example
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Oct 2025 18:09:31 +0000 (11:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Oct 2025 18:09:31 +0000 (11:09 -0700)
doc: git-worktree: add side by side branch checkout example

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.adoc

index 94730ebf7ef85c639493fc4ca439eb0d44cc283f..60f97c17ba4b9168b741b2587c1b0e3bd2fa585e 100644 (file)
@@ -522,14 +522,15 @@ $ popd
 $ git worktree remove ../temp
 ------------
 
-Side by side branch checkouts for a repository using multiple worktrees
+Side by side branch checkouts for a repository using multiple worktrees;
+let's imagine we participate in a project "bunny".
 
 ------------
-mkdir some-repository
-cd some-repository
-git clone --bare gitforge@someforge.example.com:some-org/some-repository .git
-git --git-dir=.git worktree add some-branch
-git --git-dir=.git worktree add another-branch
+mkdir
+cd bunny
+git clone --bare gitforge@someforge.example.com:some-org/bunny bunny.git
+git --git-dir=bunny.git worktree add some-branch
+git --git-dir=bunny.git worktree add another-branch
 ------------
 
 BUGS