Reputation:
This is what I read from http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository
$ git status
On branch master
nothing to commit, working directory clean
but in my case it shows all the file from the ~
home directory. Is that correct?
Upvotes: 0
Views: 74
Reputation: 5277
It sounds like you ran git init
in your home directory. This can be quite problematic; check that this is the case by checking if ~/.git/
exists. If it does, you should remove that.
And remember that a bare git init
will initialize a repo in the current directory, so you only want to run that in a new directory you've created for your project. Alternatively you can run git init <path>
and git will initialize a new repo in the given path.
Upvotes: 3