Skip to content

Commit 551bcab

Browse files
hramrachgitster
authored andcommitted
doc: git-worktree: Add side by side branch checkout example
Signed-off-by: Michal Suchanek <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 134d386 commit 551bcab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/git-worktree.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,16 @@ $ popd
522522
$ git worktree remove ../temp
523523
------------
524524
525+
Side by side branch checkouts for a repository using multiple worktrees
526+
527+
------------
528+
mkdir some-repository
529+
cd some-repository
530+
git clone --bare [email protected]:some-org/some-repository .git
531+
git --git-dir=.git worktree add some-branch
532+
git --git-dir=.git worktree add another-branch
533+
------------
534+
525535
BUGS
526536
----
527537
Multiple checkout in general is still experimental, and the support

0 commit comments

Comments
 (0)