summaryrefslogtreecommitdiffstats
path: root/git-worktree.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-20 14:23:40 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-20 14:23:40 -0700
commitfedb1b428f68e8626c38f0aef57a8379e58f3241 (patch)
tree28b330ac176be350f9ff9aa58e991ffcf55ea513 /git-worktree.txt
parent5f888330ed4fbff9586a3ec63b452dd622f5ea58 (diff)
downloadgit-htmldocs-fedb1b428f68e8626c38f0aef57a8379e58f3241.tar.gz
Autogenerated HTML docs for v2.9.0-36-gab7797
Diffstat (limited to 'git-worktree.txt')
-rw-r--r--git-worktree.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-worktree.txt b/git-worktree.txt
index c62234538..23d8d2ace 100644
--- a/git-worktree.txt
+++ b/git-worktree.txt
@@ -48,7 +48,8 @@ add <path> [<branch>]::
Create `<path>` and checkout `<branch>` into it. The new working directory
is linked to the current repository, sharing everything except working
-directory specific files such as HEAD, index, etc.
+directory specific files such as HEAD, index, etc. `-` may also be
+specified as `<branch>`; it is synonymous with `@{-1}`.
+
If `<branch>` is omitted and neither `-b` nor `-B` nor `--detached` used,
then, as a convenience, a new branch based at HEAD is created automatically,