Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 成功合并后如何进行自动提交?_Git_Command Line - Fatal编程技术网

Git 成功合并后如何进行自动提交?

Git 成功合并后如何进行自动提交?,git,command-line,Git,Command Line,我使用以下命令: git merge --commit -m="Automatic commit" --progress my_branch/master if [ $? != 0 ]; then echo "Merge fail" fi 合并成功,未产生任何冲突。 git命令输出为: Automatic merge went well; stopped before committing as requested fatal: You have not concluded your

我使用以下命令:

git merge --commit  -m="Automatic commit" --progress my_branch/master
if [ $? != 0 ]; then
    echo "Merge fail"
fi
合并成功,未产生任何冲突。
git命令输出为:

Automatic merge went well; stopped before committing as requested
fatal: You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.
为什么显示:在按请求提交之前已停止?如果不存在任何冲突,我希望它承诺

有没有办法让它自动化

 stopped before committing as requested
该消息只应在使用
--no commit
选项时出现。
如“”所示,a也会产生相同的消息


因此,除非(也许)您可能已经在进行合并,否则您不应该看到该消息。

我无法复制此消息。你确定你实际上没有传递
--no commit