TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Git

Resolve merge conflicts on GitHub

Git Tutorials

Merge conflict

Merge conflict happens when two branches modify the same file and the same line of code. Git will not merge the branches automatically but displays the error message. We need to resolve all merge conflicts in order to merge a pull request successfully.

 

Automation Re-base

Resolve conflict

Simple merge conflicts can be resolved by using the Resolve conflicts button in the pull request.

Resolve Merge Conflicts

 

Click on the Resolve conflicts button.

Manually resolve the merge conflict. Decide which code to retain and remove the unnecessary code changes.

 

Merge conflicts Demo

 

Mark the conflict as Resolved by clicking the Mark as resolved button.

Click on the Commit merge button.

Now the Merge pull request button would be enabled.

Merge pull request after merge

 

Click on the Merge pull request to merge the changes and resolved conflicts.

Related Posts

branching

Git /

What is Branching?

Git Install on Linux

Git /

Install Git on Ubuntu Linux

Version_Control_Centralized

Git /

Overview of Version Control Systems

Git Website

Git /

Getting Started with Git Version Control

Install Git on Windows 10

Git /

Install Git on Windows 10

‹ Stash Changes it Git› Create a pull request

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version