You are currently viewing Git Branching And Rebasing

Git Branching And Rebasing

Git branching and rebasing

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to branch and merge in git repository.

https://cloudaffaire.com/git-branching-and-merging/

In this blog post, we will discuss branching and rebasing in git.

Git branching and rebasing:

What is git rebase?

In Git, there are two main ways to integrate changes from one branch into another, merge and the rebase. We have already covered git merge in a previous blog post and in this blog post we will cover git rebase. In case of git merge the entire history of the feature branch will be contained in the master branch. Now suppose you don’t want all the commit message of a feature branch into your master branch. You can use git rebase in this case.

Demo:

Hope you have enjoyed this article. In the next blog post, we will discuss git history modification.

To get more details on git, please refer below git documentation

https://git-scm.com/doc

 

Leave a Reply