# UsrClass.dat Permission denied (Windows 7)

3 messages from 2011-06-13 to 2011-06-13. Participants: dm2000, Dmitry Potapov.
Thread: https://gitlist.dev/t/27610

## dm2000, 2011-06-13 05:06

Subject: UsrClass.dat Permission denied (Windows 7)
Message-ID: <1307941565243-6469046.post@n2.nabble.com>
URL: https://gitlist.dev/e/1307941565243-6469046.post%40n2.nabble.com

```
Hello,

I am new to Git... I did a quick search on here and as well as google but
couldn't find a similar issue that others were having. 

I am studying Ruby on Rails and having problems with the initial setup of
Git on my machine. Basically, I am trying to edit the .gitignore file.
However, when I enter: 'git add .' it results in the following:

error: open("appdata/local/microsoft/windows/usrclass.dat"): Permission
Denied
error: unable to index file appdata/local/microsoft/windows/usrclass.dat
fatal: adding files failed

Any idea how to correct this?

--
View this message in context: http://git.661346.n2.nabble.com/UsrClass-dat-Permission-denied-Windows-7-tp6469046p6469046.html
Sent from the git mailing list archive at Nabble.com.

```

## dm2000, 2011-06-13 05:14

Subject: Re: UsrClass.dat Permission denied (Windows 7)
Message-ID: <1307942097848-6469053.post@n2.nabble.com>
URL: https://gitlist.dev/e/1307942097848-6469053.post%40n2.nabble.com
In-Reply-To: <1307941565243-6469046.post@n2.nabble.com>

```
To summarize this problem a little bit better, let me explain...

My goal right now it to get version control with Git. I am having a really
tough time due to the permission denied....

--
View this message in context: http://git.661346.n2.nabble.com/UsrClass-dat-Permission-denied-Windows-7-tp6469046p6469053.html
Sent from the git mailing list archive at Nabble.com.

```

## Dmitry Potapov, 2011-06-13 06:45

Subject: Re: UsrClass.dat Permission denied (Windows 7)
Message-ID: <BANLkTi=HOJAtHDcgf45_y3N-YvsAXQUT8g@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTi%3DHOJAtHDcgf45_y3N-YvsAXQUT8g%40mail.gmail.com
In-Reply-To: <1307941565243-6469046.post@n2.nabble.com>

```
On Mon, Jun 13, 2011 at 9:06 AM, dm2000 <david.matuszak@yahoo.com> wrote:
>
> I am studying Ruby on Rails and having problems with the initial setup of
> Git on my machine. Basically, I am trying to edit the .gitignore file.
> However, when I enter: 'git add .' it results in the following:
>
> error: open("appdata/local/microsoft/windows/usrclass.dat"): Permission
> Denied
> error: unable to index file appdata/local/microsoft/windows/usrclass.dat
> fatal: adding files failed

Why are you trying to put your whole home directory in the git repository?
Basically, it will never work, because Windows locks usrclass.dat and some
other files...

What you probably want to do is to create a new directory for your project,
initialize a new git repository in it using 'git init' and then add files
from this directory to the git repository as you did before.

In Git, usually every project has its own repository. In fact, many developers
have more than one repository for the same project. For instance, one repository
can be made public (usually it will be a 'bare' repository) and you also have
your own private repository with the working tree (i.e. non-bare repository).
In any case, every developer has their own private repository for each project.


Dmitry

```
