How to conclude your merge of a file?

后端 未结 6 1502
天命终不由人
天命终不由人 2021-01-29 23:34

After I merged a file in Git I tried to pull the repository but error came up:

You have not concluded your merge. (MERGE_HEAD exists)

<
相关标签:
6条回答
  • 2021-01-29 23:44

    Check status (git status) of your repository. Every unmerged file (after you resolve conficts by yourself) should be added (git add), and if there is no unmerged file you should git commit

    0 讨论(0)
  • 2021-01-29 23:48

    I just did:

    git merge --continue
    

    At which point vi launched to edit a merge comment. A quick :wq and the merge was done.

    0 讨论(0)
  • 2021-01-29 23:49

    If you encounter this error in SourceTree, go to Actions>Resolve Conflicts>Restart Merge.

    SourceTree version used is 1.6.14.0

    0 讨论(0)
  • 2021-01-29 23:51

    Note and update:

    Since Git1.7.4 (January 2011), you have git merge --abort, synonymous to "git reset --merge" when a merge is in progress.

    But if you want to complete the merge, while somehow nothing remains to be added, then a crude rm -rf .git/MERGE* can be enough for Git to forget about the current merge.

    0 讨论(0)
  • 2021-01-30 00:05

    The easiest solution I found for this:

    git commit -m "fixing merge conflicts"
    git push
    
    0 讨论(0)
  • 2021-01-30 00:05

    I had the same error and i did followed article found on google solves my issue. You have not concluded your merge

    0 讨论(0)
提交回复
热议问题