Skip to the content.

Git branching

1. Overview

2. Create branch

$ git branch testing

Two branches pointing into the same series of commits Two Branch

3. Switching Branches

$ git checkout testing

Checkout master

New commit on master

$ git log --oneline --graph --all
$ git checkout -b testing-2