Branch & Child branch creating

Branching

This feature is provided in git, so that developers can create code related to different functionalities on separate branches. 

This helps the development team in creating the code in an uncluttered way. 

Later this code can be merged with master branch. 

Default branch of git is “Master” 

Developer working on multiple functionalities. 

Eg: 

Home Page   —  f1  f2   f3 

Services   —  f4  f5 

Contact US  —  f6  f7   f8 

Commands: 

Commands: git init 

Default branch is master. 

Command: git log ––oneline 

Command: git branch branchname 

Command: git checkout banchname 

Command: git branch test 

Creating new files and move to local repository. 

Command: git checkout master 

Command: git merge branchname 

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