@matheusbsbs / matheus-bagliano / commits / 61420a2cb4
Fork 0

[PATCH] Document git-fetch options

Add documentation for git-fetch options Signed-off-by: Junio C Hamano <junkio@cox.net>

Sergey Vlasov committed Sep 14, 2005 at 16:48 UTC 61420a2cb45c01e55d5bfc6abc632b9a41bb73a7
2 files changed +17
Documentation/git-fetch.txt
+6
@@ -26,6 +26,12 @@ OPTIONS
26 -------
27 include::pull-fetch-param.txt[]
28
29 +-u, \--update-head-ok::
30 + By default 'git-fetch' refuses to update the head which
31 + corresponds to the current branch. This flag disables the
32 + check. Note that fetching into the current branch will not
33 + update the index and working directory, so use it with care.
34 +
35
36 Author
37 ------
Documentation/pull-fetch-param.txt
+11
@@ -80,3 +80,14 @@
80 <ref>: when pulling/fetching, and <ref>:<ref> when
81 pushing. That is, do not store it locally if
82 fetching, and update the same name if pushing.
83 +
84 +-a, \--append::
85 + Append ref names and object names of fetched refs to the
86 + existing contents of $GIT_DIR/FETCH_HEAD. Without this
87 + option old data in $GIT_DIR/FETCH_HEAD will be overwritten.
88 +
89 +-f, \--force::
90 + Usually, the command refuses to update a local ref that is
91 + not an ancestor of the remote ref used to overwrite it.
92 + This flag disables the check. What this means is that the
93 + local repository can lose commits; use it with care.