]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: git-worktree: Add side by side branch checkout example
authorMichal Suchanek <msuchanek@suse.de>
Thu, 2 Oct 2025 15:51:35 +0000 (17:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Oct 2025 17:49:18 +0000 (10:49 -0700)
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.adoc

index aa3c737cf8c78dff253a1b0561c0e1fc20f40243..94730ebf7ef85c639493fc4ca439eb0d44cc283f 100644 (file)
@@ -522,6 +522,16 @@ $ popd
 $ git worktree remove ../temp
 ------------
 
+Side by side branch checkouts for a repository using multiple worktrees
+
+------------
+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
+------------
+
 BUGS
 ----
 Multiple checkout in general is still experimental, and the support