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