- Take me to Video Tutorial
In this section, we will take a look at git branches
-
Keep project versioned using branch
-
A branch is basically a pointer to the last commit
-
If you are working on a feature, you might work on a feature branch (eg. feature/signup), once the features are tested, you can merge to master branch
-
To create a new branch
$ git branch sarah
-
To create a new branch and switch to it
$ git checkout -b sarah
-
To list of all of our branches
$ git branch
-
Switch to exisiting branch
$ git checkout sarah
-
Delete a branch
$ git branch -d max