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 |
How git instaweb is used?
What is “Staging Area” or “Index” in GIT?
What is the command you can use to write a commit message?
What is subgit?
What is the purpose of branching in GIT?
What is difference between fork and branch? How to create tag?
What language is used in GIT?
How is git instaweb used?
What is the difference between ‘git remote’ and ‘git clone’?
How can you use git bisect to determine the source of a (regression) bug?
What is the difference between GIT and SVN?
What is the function of ‘git reset’?