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 to squash or fixup commits?
What is git fork?
What is git Is-tree?
What is ‘git status’ is used for?
What is the function of ‘git config’?
Can you explain the gitflow workflow?
What is the difference between git vs svn
What is GIT version control?
What is GIT stash?
What is another option for merging in git?
Name a few git commands?
What are git stash and git stash drop?