On 29 August 2012 10:43, ashu <[email protected]> wrote: > What can be the reason of this error ? > > ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git init > [sudo] password for ashu: > Initialized empty Git repository in /home/ashu/Documents/git-dir/git1/.git/ > ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ git commit -m "first commit" > fatal: Unable to create '/home/ashu/Documents/git-dir/git1/.git/index.lock': > Permission denied
Why do you use sudo sometimes ? *sudo* git init but git commit -m "first commit" try without any sudo /Martin -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
