Andrew KovalenkoCourses Plus Student 13,453 Points
Git status showing - fatal: Not a git repository.
I follow everything as shown in the video, but my git status isn't working as it supposed to.
Alex KoumparosPython Web Development Techdegree Student 35,937 Points
It looks like you either didn't create a repository (using
git init) or you are not in the same directory as where you created the repository.
I'm not sure if you are using Windows or Mac/Linux. The following commands will work with Unix/Unix-like systems. If you are using Windows, let me know and I'll give you the Windows equivalent.
- Check that you are in the directory you think you should be:
pwd. You should be inside the directory where you created the git repo (when you typed
git init) and not the parent directory.
- If you are definitely in the right directory, maybe you didn't create the repo. Check by typing
ls -a. You should see
.gitin the output. If you don't have a
.gitsubdirectory, you don't have a git repo initialised.
- If you don't have the repo initialised, type
Hope that helps.