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 GitHub Basics Working By Yourself Create a Branch

Fatal Error with 'git branch add-readme'?

fatal: Not a git repository (or any parent up to mount point /home/treehouse/workspace )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I keep getting this when typing in 'git branch add-readme'.

What can I do to fix this issue?

1 Answer

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Malachi,

I think you seem to be in the wrong directory.

The working directory in the video is /workspace/Treehouse

Hope this helps

Thanks a bunch. Can't believe I looked over that D:

Josie Nagy
Josie Nagy
14,992 Points

Hi John,

I'm encountering the same problem (I think a lot of people in this course are), but I don't understand your solution. Can you please further explain?

Thank you, Josie

Mike Hatch
Mike Hatch
14,940 Points

In other words, John was saying that if you're currently in the wrong directory, change into the correct one. This happened to me because I paused the course and came back. You want to be in the Treehouse folder. Type cd Treehouse into your Workspace console and that will change your directory from treehouse:~/workspace$ to the correct one: treehouse:~/workspace/Treehouse$