threads / discuss / 27610

UsrClass.dat Permission denied (Windows 7)

Subject: UsrClass.dat Permission denied (Windows 7)

## tl;dr

3 messages between Jun 13, 2011 and Jun 13, 2011.

replies: 2people: 2as markdown or json

dm2000· Jun 13, 2011, 05:06 UTC · lore
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· Jun 13, 2011, 05:14 UTC · re: dm2000 · lore

Re: UsrClass.dat Permission denied (Windows 7)

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· Jun 13, 2011, 06:45 UTC · re: dm2000 · lore

Re: UsrClass.dat Permission denied (Windows 7)

On Mon, Jun 13, 2011 at 9:06 AM, dm2000 <david.matuszak@yahoo.com> wrote:
Show 9 quoted lines
>
> 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

← back to recent threads