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 trial

Development Tools Git Basics Merging Basic Merging

gregory gordon
seal-mask
.a{fill-rule:evenodd;}techdegree
gregory gordon
Full Stack JavaScript Techdegree Student 14,652 Points

fatal: Not a git repository (or any of the parent directories): .git happened when i started the launch console.

fatal: Not a git repository (or any of the parent directories): .git

happened when i started the launch console.And dont know what to do to keep up with the video.

2 Answers

I had the same issue. I finished the previous lesson, closed the console, and then when I opened a new instance of the console I got the following error: "fatal: Not a git repository (or any of the parent directories): .git"

In the context of this project, I got this error because I was running "git branch" from my home directory when I should have been running "git branch" from the my_really_cool_project/ repository. The following worked for me:

cd my_really_cool_project/
git branch
jason chan
jason chan
31,009 Points

Just close the window and start a new window.