Branch Operation Basic Life Cycle
On this page, we'll explain a basic life cycle for the branch operation in seven steps.
Step 1: Create a new branch
As a default setting, you are working on the master branch. Edit and commit operations explained in the previous chapter were conducted on the master branch.
When you want to separate your work from the master branch, you need to create a new branch by running the git branch [new branch name]
command.
Step 2: Check the branch status
To check your branch status (i.e., the list of branches and the current branch) in the command line, you need to run the
Subscribe now for
uninterrupted access.