It's this simple...

git branch branch_name

where 'branch_name' is your preferred name for the branch. However, it makes sense to give a branch a descriptive name that more or less matches its purpose. For instance, if you're fixing a critical issue during development, it may suffice to name your branch 'hotfix' or if your working on some tests, you could call it...you guessed right, 'testing'.

When you create a new branch...

a new pointer is created for you to move around as it's flexible (from our definition of a branch).

Therefore, creating a new branch called _testing _creates a new pointer at the same commit you're currently on.

git branch testing

                             _**Branch pointing into the commit's data history**_

                                _**Multiple branches pointing into the commit's data history**_

results matching ""

    No results matching ""