diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-28 15:40:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-28 15:40:27 -0800 |
commit | 615c3b305d84007474d17c62d54fc18c71fdc587 (patch) | |
tree | 3c342628ed177b313bffbdb3250ed18d71046cca /git-worktree.txt | |
parent | 90fd88e4a2ddbb1298553bb804788405aa3e984c (diff) | |
download | git-htmldocs-615c3b305d84007474d17c62d54fc18c71fdc587.tar.gz |
Autogenerated HTML docs for v2.16.2-345-g7e3123
Diffstat (limited to 'git-worktree.txt')
-rw-r--r-- | git-worktree.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git-worktree.txt b/git-worktree.txt index 41585f535..5ac3f68ab 100644 --- a/git-worktree.txt +++ b/git-worktree.txt @@ -52,10 +52,11 @@ is linked to the current repository, sharing everything except working directory specific files such as HEAD, index, etc. `-` may also be specified as `<commit-ish>`; it is synonymous with `@{-1}`. + -If <commit-ish> is a branch name (call it `<branch>` and is not found, +If <commit-ish> is a branch name (call it `<branch>`) and is not found, and neither `-b` nor `-B` nor `--detach` are used, but there does exist a tracking branch in exactly one remote (call it `<remote>`) -with a matching name, treat as equivalent to +with a matching name, treat as equivalent to: ++ ------------ $ git worktree add --track -b <branch> <path> <remote>/<branch> ------------ |