Skip to content

Commit c8416f1

Browse files
committed
amend! doc: git-worktree: Add side by side branch checkout example
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 551bcab commit c8416f1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Documentation/git-worktree.adoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,15 @@ $ popd
522522
$ git worktree remove ../temp
523523
------------
524524
525-
Side by side branch checkouts for a repository using multiple worktrees
525+
Side by side branch checkouts for a repository using multiple worktrees;
526+
let's imagine we participate in a project "bunny".
526527
527528
------------
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
529+
mkdir
530+
cd bunny
531+
git clone --bare [email protected]:some-org/bunny bunny.git
532+
git --git-dir=bunny.git worktree add some-branch
533+
git --git-dir=bunny.git worktree add another-branch
533534
------------
534535
535536
BUGS

0 commit comments

Comments
 (0)