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 trialYevgen Okhrimenko
Courses Plus Student 840 PointsTask: Switch to the new_feature branch. > git checkout -b new_feature I get the ERROR: Wrong branch name...
Task: Switch to the new_feature branch.
git checkout -b new_feature I get the ERROR: Wrong branch name...
2 Answers
Seth Kroger
56,413 PointsYou're very close. The only issue is the -b
flag is for creating a new branch, not switching to an existing one. To switch to an existing one just use the name of the branch without it: git checkout new_feature
eberhapa
51,495 PointsYour code would create a new branch and switch to it. You just have to write "git checkout new_feature".