From: Michal Suchanek Date: Thu, 02 Oct 2025 15:51:35 GMT Subject: [PATCH 2/2] doc: git-worktree: Add side by side branch checkout example Message-ID: <1d5b41562937d83be261d054989b04db6cb94a86.1759420102.git.msuchanek@suse.de> In-Reply-To: Signed-off-by: Michal Suchanek --- Documentation/git-worktree.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/git-worktree.adoc b/Documentation/git-worktree.adoc index ec31863aec..122b191ff9 100644 --- a/Documentation/git-worktree.adoc +++ b/Documentation/git-worktree.adoc @@ -525,6 +525,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 -- 2.51.0