Rebase & Merge by using below commands

Git rebase: 

This is called as fast-forward merge. 

The commits from the child branch are added to the top of the master branch. 

This is helpful when we want code from a branch to be reflected as the latest working version on master. 

Commit: commit is a meaningful milestone what developer has been achieved. 

Rearrange the commit order: 

         Command: git rebase -i HEAD~4 

Merge the commits:       using “squash” 

Command: git rebase -i HEAD~4 – changing the order 

Remove the pick word and replace it with squash.it will hide the commit 

Leave a Comment

MFH DevOps Consultation Services

Add Few lines about the company here

Contact

MFH Devops Consulation
#4-72-1/1. 1st Floor, Beach Road Lawson’s Bay Colony, Near Shanti Ashram, Opp. Bharat Petroleum, Visakhapatnam, Andhra Pradesh – 530017