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
git status giving error on Mac
I have installed Xcode and when I opened the terminal on my Mac it asked me to run sudo first to agree to the terms. I did that. However, next I got: "fatal: Not a git repository (or any of the parent directories): .git" What can I do to fix this?
oh my goodness, sorry. I googled and found the answer. I'm brand new to Mac and finding myself a little overwhelmed (had to get one for school)...I had to call support just to find out how to "select all" in a folder (apparently you can't, you have to click and drag), which was a little humbling for me.
For anyone else having the same error: After you do git status and agree to the terms, the error is because there is no git repository in your current directory. To get it working all you have to do is "get init" and the files will be set up. You may want to change directories before you do this if you want the git repository in a specific location.
Kevin Korte28,148 Points
Glad to hear you got it figured out. In regards to select all in a folder, try
a as a keyboard shortcut.
Kei, xcode is the app you use to write programs but git is separate, you have to install it also. After it's installed then you git init in the directory where you will be working with it.