git init --bare permission denied on 16gb USB stick
- by Sour Lemon
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.