when I try to create a repo inside the htdocs folder of my Apache installation (using Zend Server CE), git gives me this error:
$ git init error: unable to create directory for e:/WORK/Zend/Apache2/htdocs/gittest2/.git/HEAD
It works fine outside of htdocs /, but I would like to have repositories inside this directory in order to work with them at the same time.
I used git bash with administrator rights and AFAIR, there is nothing else that could be wrong with respect to privileges on Win machines.
Any help would be appreciated!
Using:
[update]
- as VonC suggested this might be a bug in this version of msysGit
Bypass
Use TortoiseGit to create a repo in a directory that causes problems. A good chance that he will be successful.
Sometimes the git GUI (from msysgit) successfully creates a "problem" repo (it worked on my last repo in this folder, not this one).
source share