Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git status error: Not a git repository

omoatayo April 18, 2017

Hi All,

 

I hope you can help!

I am folllowing the Learning Git tutorial but have come stuck when using git status command in bash:

..............................................................................................

dell@dell-PC MINGW64 ~/repos
$ ls
bitbucketstationlocations/ bucketstationsupplies/ locations.txt

dell@dell-PC MINGW64 ~/repos
$ cd repos/bitbucketstationslocations
bash: cd: repos/bitbucketstationslocations: No such file or directory

dell@dell-PC MINGW64 ~/repos
$ echo "Earth's Moon" >> locations.txt

dell@dell-PC MINGW64 ~/repos
$ git status
fatal: Not a git repository (or any of the parent directories): .git

dell@dell-PC MINGW64 ~/repos
$ cd repos/bitbucketstationslocations/git status
bash: cd: too many arguments

dell@dell-PC MINGW64 ~/repos
$ echo "Earth's Moon" /locations.txt
Earth's Moon /locations.txt

dell@dell-PC MINGW64 ~/repos
$ git status
fatal: Not a git repository (or any of the parent directories): .git

dell@dell-PC MINGW64 ~/repos
$ git status locations.txt
fatal: Not a git repository (or any of the parent directories): .git

dell@dell-PC MINGW64 ~/repos

.............................................................................................................

Your assistance would be most welcome!

1 answer

2 votes
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2017

Try an ls -al to see if there is a .git directory.

If not, initialise the directory with git init

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events