error saying unmerged paths

0 votes
I'm trying to execute the git pull command and i'm getting an error saying unmerged paths. How do I clear it?
Jun 27, 2018 in Git & GitHub by Hannah
• 14,040 points
76 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Git merging means taking changes from one context and combining it with your current working files. Most of the times git figures how to merge but there are few cases when you need to tell git what you do.

For example, when two people make changes to the same line in same file, when one person decides to delete while another person decides to manipulate the file etc.

try $git mergetool

It opens a GUI that helps you through every single step in resolving merge conflict.

The command does not open a GUI unless you've installed one.

 set vimdiff as your default merge too using the following commands

$git config merge.tool vimdiff

$git config merge.conflictstyle diff3

$git config mergetool.prompt false

run the following command

 $git mergetool

You'll see a vimdiff display

LOCAL BASE REMOTE
MERGED

You can navigate between different views using ctrl+w and reach the MERGED view using ctrl+w-j

You could edit the MERGED view the following wa

 -If you want to get changes from REMOTE

  :diffg RE 

 -If you want to get changes from BASE

  :diffg BA 

 -If you want to get changes from LOCAL

 :diffg LO

Save, Exit, Commit and Clean up

 :wqa save and exit from vi

git commit -m "message"

git clean Remove extra files created by diff tool.

answered Jun 27, 2018 by anonymous

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

answered Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
28 views
+1 vote
3 answers

Cloning the Git Repository on Eclipse (Transport Error)

File/Import... Select dialog * Git/Projects from Git * click next Select ...READ MORE

answered Jul 23, 2018 in Git & GitHub by Kalgi
• 35,640 points
1,293 views
0 votes
1 answer

Error: git pull fails “unable to resolve reference” “unable to update local ref”

This happens when there are unnecessary files ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 9,050 points
215 views
+1 vote
5 answers
0 votes
3 answers

error cloning remote repo 'origin'

Follow these steps: Go to Manage Jenkins Go to ...READ MORE

answered Apr 24 in Git & GitHub by Bina
1,260 views
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.