Skip to contentSkip to conversation

UsrClass.dat Permission denied (Windows 7)

DISCUSSION dm2000 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

dm2000

author
#0 lore raw

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.

#2 lore raw
In reply to dm2000
Quoted 9 lines · On Mon, Jun 13, 2011 at 9:06 AM, dm2000 <[email protected]> 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