Create and checkout a branch
git checkout -b
This command creates a branch locally and then checks it out.
Create Branch
git branch
This command creates the branch in the local repository
Checkout Branch
git checkout
This command sets the current branch to
Check if a branch exists
git show-ref --verify --quiet refs/heads/int-2013.3
echo $?
git show-branch int-2013.3
echo $?