Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to resolve a conflict in git?



How to resolve a conflict in git?..

Answer / Sheelvant

To resolve a conflict in Git, follow these steps:n1. Pull or merge the conflicting branches: $ git pull --rebase origin branch-namen2. Resolve the conflicts by editing the files that have conflict markers (<<<<<<<, =======, and >>>>>>>). Save the changes and remove the conflict markers.n3. Add the resolved files to the index using `git add <file>`.n4. Commit the changes with a message explaining the resolution: $ git commit -m 'Resolved merge conflicts'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

What does ‘hooks’ comprise of in git?

1 Answers  


Explain the gitflow workflow?

1 Answers  


What is a repository and how will you create it?

1 Answers  


What is subgit and why is it used?

1 Answers  


What is git fork? What is the difference between fork, branch, and clone?

1 Answers  


Name a few git commands and explain their usage.

1 Answers  


How do you find a list of files that have changed in a particular commit?

1 Answers  


What is the difference between ‘git remote’ and ‘git clone’?

1 Answers  


What is the command you can use to write a commit message?

1 Answers  


What is the use of ‘git log’?

1 Answers  


How can you fix a broken commit?

1 Answers  


In git, how would you return a commit that has just been pushed and made open?

1 Answers  


Categories