Skip to content

Commit 342215b

Browse files
committed
Merge branch 'tg/worktree-create-tracking' into maint
Hotfix for a recent topic. * tg/worktree-create-tracking: git-worktree.txt: fix indentation of example and text of 'add' command git-worktree.txt: fix missing ")" typo
2 parents 8bfeb0e + d023df1 commit 342215b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-worktree.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ is linked to the current repository, sharing everything except working
5252
directory specific files such as HEAD, index, etc. `-` may also be
5353
specified as `<commit-ish>`; it is synonymous with `@{-1}`.
5454
+
55-
If <commit-ish> is a branch name (call it `<branch>` and is not found,
55+
If <commit-ish> is a branch name (call it `<branch>`) and is not found,
5656
and neither `-b` nor `-B` nor `--detach` are used, but there does
5757
exist a tracking branch in exactly one remote (call it `<remote>`)
58-
with a matching name, treat as equivalent to
58+
with a matching name, treat as equivalent to:
59+
+
5960
------------
6061
$ git worktree add --track -b <branch> <path> <remote>/<branch>
6162
------------

0 commit comments

Comments
 (0)