// git branch (nameOfTheBranch)
git branch homePage
# To create a new local branch...
# ...based on the current revision:
$ git checkout -b <branch-name>
# ...based on a specific revision hash:
$ git checkout -b <branch-name> <commit-hash>
git checkout -b myNewBranch
# create and switch to the new branch
git checkout -b <Name_of_your_branch>
# example
git checkout -b testBranch1
# if you check your current branch it will show you testBranch1
git branch <branch>
// Example for creating a new branch named myNewBranch
// git switch is specifically for branches while git checkout is for
// both branches and commits
git switch -c myNewBranch
// First Push
git push -u origin HEAD
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'
// Creating a new branch in git
git checkout -b myNewBranch
// First Push
git push --set-upstream origin myNewBranch