Git and branches

  • by

Create a new branch

git checkout -b BRANCH_NAME

Show all branches

Here you can see the branch you are currently working in.

git branch
git branch -a

Switch to branch v1.0.0

git checkout v1.0.0

Switch to master branch

git checkout master
Tags: