Last Updated: February 25, 2016
·
410
· klj613

Creating a new branch

Personally I prefer to use one command which is:

git checkout -b feature-y origin/master --no-track

I know.. its long. However it is better than:

git checkout origin/master
git checkout -b feature-y

What is the --no-track for? It is to prevent the new branch from tracking origin/master.