Skip to content

Commit b0380a8

Browse files
hramrachgitster
authored andcommitted
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>
1 parent dd4271e commit b0380a8

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 gitforge@someforge.example.com:some-org/some-repository some-repository.git
531+
git --git-dir=some-repository.git worktree add some-branch
532+
git --git-dir=some-repository.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)