{"thread":{"id":"27610","subject":"UsrClass.dat Permission denied (Windows 7)","startedAt":"2011-06-13T05:06:05Z","lastAt":"2011-06-13T06:45:54Z","messageCount":3,"participants":["dm2000","Dmitry Potapov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"169917","messageId":"1307941565243-6469046.post@n2.nabble.com","threadId":"27610","inReplyTo":null,"subject":"UsrClass.dat Permission denied (Windows 7)","fromName":"dm2000","fromEmail":"david.matuszak@yahoo.com","sentAt":"2011-06-13T05:06:05Z","receivedAt":"2011-06-13T05:06:05Z","isPatch":false,"sender":{"key":"david.matuszak@yahoo.com","avatar":null},"body":"Hello,\n\nI am new to Git... I did a quick search on here and as well as google but\ncouldn't find a similar issue that others were having. \n\nI am studying Ruby on Rails and having problems with the initial setup of\nGit on my machine. Basically, I am trying to edit the .gitignore file.\nHowever, when I enter: 'git add .' it results in the following:\n\nerror: open(\"appdata/local/microsoft/windows/usrclass.dat\"): Permission\nDenied\nerror: unable to index file appdata/local/microsoft/windows/usrclass.dat\nfatal: adding files failed\n\nAny idea how to correct this?\n\n--\nView this message in context: http://git.661346.n2.nabble.com/UsrClass-dat-Permission-denied-Windows-7-tp6469046p6469046.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"169918","messageId":"1307942097848-6469053.post@n2.nabble.com","threadId":"27610","inReplyTo":"1307941565243-6469046.post@n2.nabble.com","subject":"Re: UsrClass.dat Permission denied (Windows 7)","fromName":"dm2000","fromEmail":"david.matuszak@yahoo.com","sentAt":"2011-06-13T05:14:57Z","receivedAt":"2011-06-13T05:14:57Z","isPatch":false,"sender":{"key":"david.matuszak@yahoo.com","avatar":null},"body":"To summarize this problem a little bit better, let me explain...\n\nMy goal right now it to get version control with Git. I am having a really\ntough time due to the permission denied....\n\n--\nView this message in context: http://git.661346.n2.nabble.com/UsrClass-dat-Permission-denied-Windows-7-tp6469046p6469053.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"169920","messageId":"BANLkTi=HOJAtHDcgf45_y3N-YvsAXQUT8g@mail.gmail.com","threadId":"27610","inReplyTo":"1307941565243-6469046.post@n2.nabble.com","subject":"Re: UsrClass.dat Permission denied (Windows 7)","fromName":"Dmitry Potapov","fromEmail":"dpotapov@gmail.com","sentAt":"2011-06-13T06:45:54Z","receivedAt":"2011-06-13T06:45:54Z","isPatch":false,"sender":{"key":"dpotapov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/6568595?v=4"},"body":"On Mon, Jun 13, 2011 at 9:06 AM, dm2000 <david.matuszak@yahoo.com> wrote:\n>\n> I am studying Ruby on Rails and having problems with the initial setup of\n> Git on my machine. Basically, I am trying to edit the .gitignore file.\n> However, when I enter: 'git add .' it results in the following:\n>\n> error: open(\"appdata/local/microsoft/windows/usrclass.dat\"): Permission\n> Denied\n> error: unable to index file appdata/local/microsoft/windows/usrclass.dat\n> fatal: adding files failed\n\nWhy are you trying to put your whole home directory in the git repository?\nBasically, it will never work, because Windows locks usrclass.dat and some\nother files...\n\nWhat you probably want to do is to create a new directory for your project,\ninitialize a new git repository in it using 'git init' and then add files\nfrom this directory to the git repository as you did before.\n\nIn Git, usually every project has its own repository. In fact, many developers\nhave more than one repository for the same project. For instance, one repository\ncan be made public (usually it will be a 'bare' repository) and you also have\nyour own private repository with the working tree (i.e. non-bare repository).\nIn any case, every developer has their own private repository for each project.\n\n\nDmitry\n"}]}