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 git fork? What is difference between fork and branch? How to create tag?



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

Answer / Niraj Kumar Sharma

In Git, both rebase and merge are used to integrate changes from one branch into another. However, they behave differently:n1. Rebase: It moves the entire history of the source branch onto a new base commit (usually the latest common ancestor with the destination branch). This results in a cleaner, linear history without extra merges. To use rebase, run `git rebase <source_branch>`.n2. Merge: It creates a new commit that combines the changes of the source and destination branches. The resulting commit graph includes a merge commit, which shows how both branches were combined.n- To merge a branch into your current branch, use `git merge <source_branch>`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

How git instaweb is used?

1 Answers  


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

1 Answers  


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

1 Answers  


What is subgit?

1 Answers  


What is the purpose of branching in GIT?

1 Answers  


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

1 Answers  


What language is used in GIT?

1 Answers  


How is git instaweb used?

0 Answers  


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

1 Answers  


How can you use git bisect to determine the source of a (regression) bug?

1 Answers  


What is the difference between GIT and SVN?

1 Answers  


What is the function of ‘git reset’?

1 Answers  


Categories