提交 42905294 编写于 作者: A Andrew Ruder 提交者: Junio C Hamano

Document additional options for git-fetch

Document --quiet/-q and --verbose/-v
Add -n as an alternate for --no-tags
Fix some whitespace issues
Signed-off-by: NAndrew Ruder <andy@aeruder.net>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 4551d05f
-q, \--quiet::
Pass --quiet to git-fetch-pack and silence any other internally
used programs.
-v, \--verbose::
Be verbose.
-a, \--append:: -a, \--append::
Append ref names and object names of fetched refs to the Append ref names and object names of fetched refs to the
existing contents of `.git/FETCH_HEAD`. Without this existing contents of `.git/FETCH_HEAD`. Without this
option old data in `.git/FETCH_HEAD` will be overwritten. option old data in `.git/FETCH_HEAD` will be overwritten.
\--upload-pack <upload-pack>:: \--upload-pack <upload-pack>::
When given, and the repository to fetch from is handled When given, and the repository to fetch from is handled
by 'git-fetch-pack', '--exec=<upload-pack>' is passed to by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
the command to specify non-default path for the command the command to specify non-default path for the command
run on the other end. run on the other end.
-f, \--force:: -f, \--force::
When `git-fetch` is used with `<rbranch>:<lbranch>` When `git-fetch` is used with `<rbranch>:<lbranch>`
...@@ -16,7 +23,7 @@ ...@@ -16,7 +23,7 @@
fetches is a descendant of `<lbranch>`. This option fetches is a descendant of `<lbranch>`. This option
overrides that check. overrides that check.
\--no-tags:: -n, \--no-tags::
By default, `git-fetch` fetches tags that point at By default, `git-fetch` fetches tags that point at
objects that are downloaded from the remote repository objects that are downloaded from the remote repository
and stores them locally. This option disables this and stores them locally. This option disables this
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册