On 29 August 2012 10:43, ashu <ashutove...@gmail.com> 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
git commit -m "first commit"

try without any sudo


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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to