提交 e330d8ca 编写于 作者: T Thomas Rast

Documentation: warn prominently against merging with dirty trees

We do this for both git-merge and git-pull, so as to hopefully alert
(over)users of git-pull to the issue.
Signed-off-by: NThomas Rast <trast@student.ethz.ch>
上级 57bddb11
...@@ -22,6 +22,10 @@ The second syntax (<msg> `HEAD` <commit>...) is supported for ...@@ -22,6 +22,10 @@ The second syntax (<msg> `HEAD` <commit>...) is supported for
historical reasons. Do not use it from the command line or in historical reasons. Do not use it from the command line or in
new scripts. It is the same as `git merge -m <msg> <commit>...`. new scripts. It is the same as `git merge -m <msg> <commit>...`.
*Warning*: Running 'git-merge' with uncommitted changes is
discouraged: while possible, it leaves you in a state that is hard to
back out of in the case of a conflict.
OPTIONS OPTIONS
------- -------
......
...@@ -24,6 +24,10 @@ when merging local branches into the current branch. ...@@ -24,6 +24,10 @@ when merging local branches into the current branch.
Also note that options meant for 'git-pull' itself and underlying Also note that options meant for 'git-pull' itself and underlying
'git-merge' must be given before the options meant for 'git-fetch'. 'git-merge' must be given before the options meant for 'git-fetch'.
*Warning*: Running 'git-pull' (actually, the underlying 'git-merge')
with uncommitted changes is discouraged: while possible, it leaves you
in a state that is hard to back out of in the case of a conflict.
OPTIONS OPTIONS
------- -------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册