【问题标题】:How to resolve git MERGING state?如何解决 git 合并状态?
【发布时间】:2014-07-17 18:24:23
【问题描述】:

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

我已经跑了:

$> git checkout target-branch
$> git pull
$> git checkout source-branch
$> git merge target-branch

我已经解决了一些冲突:

$> git mergetool

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

>Was the merge successful? [y/n]

y.

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

dir/to/my/project (source-branch|MERGING)
$>

我如何告诉 git 我对我所做的合并感到满意?

【问题讨论】:

  • git status 没有给你提交合并的说明吗?
  • @Chris,你说得对,我刚刚运行了它,它确实说 (use "git commit" to conclude merge)

标签: git merge git-merge


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-15
    • 2010-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-22
    • 2011-03-13
    相关资源
    最近更新 更多