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 will hide the commit 

Leave a Comment

MFH IT Solutions (Regd No -LIN : AP-03-46-003-03147775)

Consultation & project support organization.


MFH IT Solutions (Regd)
NAD Kotha Road, Opp Bashyam School, Butchurajupalem, Jaya Prakash Nagar Visakhapatnam, Andhra Pradesh – 530027