make a branch from a branch git code example

Example 1: how to make a new branch git

$ git checkout -b [name_of_your_new_branch]

Example 2: how to branch from a branch in git

$ git checkout -b myFeature dev

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: git command to create a branch from another branch

$ git checkout -b myfeature dev

Example 5: how to commit a branch in git

git commit -m "added my github name"

Example 6: how to create a branch in git

$ git branch [name of branch]