How can conflict in git resolved?



How can conflict in git resolved?..

Answer / Indu Singh

Resolving conflicts in Git can be done manually or automatically. For manual resolution, Git indicates the conflicting files with a message and marks the conflicting areas using '<<<<<<<', '=======', and '>>>>>>>'. You need to manually edit the file by merging the changes from both branches. For automatic resolution, use the command 'git merge --no-commit' followed by 'git automerge' or 'git diff --merge'. This will automatically attempt to merge the files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

What are the benefits of using version control system?

1 Answers  


What is git reflog?

1 Answers  


What is the purpose of branching in GIT?

1 Answers  


How will you know in git if a branch has already been merged into master?

1 Answers  


What is “Staging Area” or “Index” in GIT?

1 Answers  


What is GIT stash drop?

1 Answers  


What does commit object contain?

1 Answers  


what is git fork? What is difference between fork and branch? How to create tag?

1 Answers  


What is ‘git add’ is used for?

1 Answers  


What is git bisect and what is its purpose?

1 Answers  


What is a repository and how will you create it?

1 Answers  


Why is it desirable to create an additional commit rather than amending an existing commit?

1 Answers  


Categories