Day 24: Git Zero To Hero ๐Ÿš€

ยท

2 min read


Hope u remember our previous blog :

Day 23 - Git Blog

Git series 2/3: rebase and the golden rule explained. | by Pierre de Wulf |  We've moved to freeCodeCamp.org/news | Medium

As u can see in the above image in rebase all the commits are in a linear fashion ๐Ÿ˜ƒ, that's a major difference.

Let's do rebasing:

Do 1 commit from the master branch and then create 1 branch name feature and do 2 commits as done in the above image.

Let's REBASE ๐Ÿ˜

  1. DOne some changes in master branch and do commit

In the above image, we have made some changes in the master branch and have done one commit.

  1. Now create one branch feature and do 2 commits

    As u can see 2 commits were made by the feature branch and the head is on a feature branch.

  2. Now let's do rebasing, if u want to rebase the feature branch into the master branch then u have to be @ feature branch.

     git rebase master
    

    The above image reveals everything ๐Ÿ˜„

    Next Blog Teaser ๐Ÿ˜„

    Nothing, U are now GITESTER ๐Ÿคฉ

    Bas aab yahan tak hi tha safar .... ๐Ÿ˜ข๐Ÿ’”

    Bas Yahin Tak Tha Jo Tha Break Up GIF - Bas Yahin Tak Tha Jo Tha Break Up  Mirzapur - Discover & Share GIFs

    Thanks for reading ๐Ÿ™๐Ÿงก

ย