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

Your email address will not be published. Required fields are marked *

Scroll to Top