justask.dev

Community powered answers to your dev questions

Create a new branch

posted: 2019 December 6th

category: git

Edit this post on GitHub.

Back

To create a new branch checkout the branch you want to base your work on

1git checkout myOriginalBranch

Then its as simple as doing a pull to make sure you have the latest work and adding the -b tag with your new branches name

1git pull
2git checkout -b myNewBranch

Author: Rich Haines