Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

git merge continue - How do I finish the merge after resolving my merge conflicts?

Asked by Heather Edmunds Jul 5, 2021 1.9K views 1 answer
Share

About this question

 I've read the Basic Branching and Merging section of the Git Community Book.

So I follow it and create one branch: experimental.

Then I:

  1. switch to experimental branch (git checkout experimental)

  2. make a bunch of changes

  3. commit it (git commit -a)

  4. switch to master branch (git checkout master)

  5. make some changes and commit there

  6. switch back to experimental (git checkout experimental)

  7. merge master change to experimental (git merge master)

  8. there are some conflicts but after I resolve them, I did 'git add myfile'

  9. And now i am stuck, I can't move back to master

when I do

 $ git checkout master
error: Entry 'res/layout/my_item.xml' would be overwritten by merge. Cannot merge.

and I did:

$ git rebase --abort

No rebase in progress?

and I did :

$ git add res/layout/socialhub_list_item.xml
$ git checkout master
error: Entry 'res/layout/my_item.xml' would be overwritten by merge. Cannot merge.

What can I do so that I can go back to my master branch? How the git merge continue?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.