git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: UsrClass.dat Permission denied (Windows 7)

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Jun 13, 2011, 06:45 UTC
Message-ID
<BANLkTi=HOJAtHDcgf45_y3N-YvsAXQUT8g@mail.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:
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
Previous: dm2000
Message 3 of 3 in “UsrClass.dat Permission denied (Windows 7)”
  1. dm2000Jun 13, 2011
  2. dm2000Jun 13, 2011
  3. Dmitry PotapovJun 13, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.