create a branch from master git code example

Example 1: create new branch git

$ git checkout -b [name_of_your_new_branch]

Example 2: git create new branch

// create and checkout new branch in one line
git checkout -b new_branch

Example 3: create branch in git

# Create New Branch And Switch To It
$ git checkout -b myBranchName

Example 4: git merge branch to master

$ git checkout master
Switched to branch 'master'
$ git merge iss53
Merge made by the 'recursive' strategy.
index.html |    1 +
1 file changed, 1 insertion(+)

Example 5: git create branch

$ git branch iss53
$ git checkout iss53

Example 6: git new branch create

git checkout -b <new-branch>

Tags:

Misc Example