Welcome to the Treehouse Community
Looking to learn something new?
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,110 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.