git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Potapov <dpotapov@gmail.com>
To: dm2000 <david.matuszak@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: UsrClass.dat Permission denied (Windows 7)
Date: Mon, 13 Jun 2011 10:45:54 +0400	[thread overview]
Message-ID: <BANLkTi=HOJAtHDcgf45_y3N-YvsAXQUT8g@mail.gmail.com> (raw)
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

      parent reply	other threads:[~2011-06-13  6:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13  5:06 UsrClass.dat Permission denied (Windows 7) dm2000
2011-06-13  5:14 ` dm2000
2011-06-13  6:45 ` Dmitry Potapov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=HOJAtHDcgf45_y3N-YvsAXQUT8g@mail.gmail.com' \
    --to=dpotapov@gmail.com \
    --cc=david.matuszak@yahoo.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).