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...

What is the difference between rebasing and merge in git?

Answer Posted / Amit Kumar Batar

Rebasing and merging are two common methods for integrating changes from one branch to another in Git. Here's a summary of their differences:n1. Rebase: When you rebase, you move or combine a feature branch onto another branch. This results in a linear history where the features are built on top of the latest version of the target branch, rather than having multiple independent lines of development. However, rebasing can be confusing if others are also working on the same branches as it will appear as though commits are being rewritten.n2. Merge: When you merge, you combine changes from another branch into your current branch. This creates a new commit that represents the merge point between the two branches. The original commits remain intact, and there's no linearization of the history like with rebasing. Merging is typically less disruptive to others working on the same project because it doesn't change the commit history.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is git instaweb used?

2