如何解决git MERGING状态?

Stu*_*ser 2 git merge git-merge

我有一个从源分支到目标分支的拉取请求.

我跑了:

$> git checkout target-branch
$> git pull
$> git checkout source-branch
$> git merge target-branch
Run Code Online (Sandbox Code Playgroud)

我解决了一些冲突:

$> git mergetool
Run Code Online (Sandbox Code Playgroud)

此合并并非100%成功,因此我手动>>>>>>从文件中删除了冲突假象(等)并响应提示:

>Was the merge successful? [y/n]
Run Code Online (Sandbox Code Playgroud)

y.

所以我对源代码分支中所有文件的状态感到满意,但我的CLI现在显示:

dir/to/my/project (source-branch|MERGING)
$>
Run Code Online (Sandbox Code Playgroud)

我怎么告诉git我对合并我感到满意?

小智 14

您很可能需要将git commit合并提交到本地存储库.