git checkout new branch from another branch code example

Example 1: git checkout new branch

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

Example 2: create new branch git from master

git checkout -b new-branch-name

Example 3: createa. branch off of development git

//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev

Example 4: create branch from another branch

$ git checkout -b myFeature dev

Example 5: how to checkout to another branch in git

git checkout -b branch

Example 6: how to checkout to another branch in git

git checkout branch name

Tags:

Php Example