Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Git Basics Working With Remote Repositories Pushing and Pulling

Git Basics

I have been doing the Git Basics course, and I was first using the downloaded windows version of Git Bash...but I got confused as I followed videos because the tutorial wasnt with Git Bash.

Then I tried to switch to the console that you can launch during video/lesson and have been repeatedly told that git is fatal: not a git repository (or any of the parent directories): .git

I am so confused and dont know if i should restart the whole course now or what......i feel lost now because i switched from things saved in git bash to things not existing in the console...

1 Answer

geoffrey
geoffrey
28,724 Points

You won't be able to run your git commands if you don't init a local Git repository. So have you run the command : git init ? (Inside the folder where you want the git repository to be set).

good call. thanks!