Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Abbas,
There's not enough information to go on here to give you a definite answer so you'll have to tell me if I'm barking up the wrong tree but from the sound of things I'm guessing you're working on a project on GIT VCS and want to know how to add a branch to a project.
You might have been trying with
git branch *branchName*
to create one.
However the way to do it is using
git checkout -b nameOfBranch
-b is a flag that tells git to create a new branch on your local repository. It will create it and then take you to the newly created branch.
I hope I've got this right and it has helped. :)