what is git fork? What is difference between fork and branch? How to create tag?
Answer Posted / 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 View All Answers