git init --bare permission denied on 16gb USB stick

Posted by Sour Lemon on Super User See other posts from Super User or by Sour Lemon
Published on 2012-04-06T03:58:04Z Indexed on 2012/04/06 5:32 UTC
Read the original article Hit count: 480

I am using GIT on a Windows 7 machine (64 bit) and have been learning how to use GIT to version control my files.

Now I want to be able to create a --bare repository on an external device (in this case a 16gb USB stick) but unfortunately when I try to create a --bare repository on it I get the following error:

f:/: Permission denied

I am using the GIT Bash program which is installed with GIT on Windows machines, so these are the commands I am typing in (I am also opening the program as administrator by holding ctrl + shift when I open it)

cd /f
git init --bare
f:/: Permission denied

However if I create a normal repository it works just fine:

cd /f
git init
Initialized empty repository in f:/.git/

Can anybody shed some light on why I can't create a --bare repository?

Any help would be much appreciated.

© Super User or respective owner

Related posts about windows-7

Related posts about permissions