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 trialMathew Leland
19,236 PointsCannot create a git branch on Mac OSX
In Terminal, when I type:
git branch foo_feature
I get the message:
fatal: Not a valid object name: 'master'.
All I have done in this directory is git init a repository. Is there another step I'm missing? Or a naming convention that I'm missing?
1 Answer
David Magaña
4,170 PointsMaybe it is because you can't create a branch if you don't have at least 1 commit on your master branch yet.
Mathew Leland
19,236 PointsMathew Leland
19,236 PointsI think that was the issue. Totally makes sense :)