Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 568955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:14:36+00:00 2026-05-13T13:14:36+00:00

when I try to create a repo inside htdocs folder of my Apache installation

  • 0

when I try to create a repo inside 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 well outside htdocs/, but i would like to have repos inside this dir in order to work on them at the same time.

I have been using git bash with administrator privilages and AFAIR there’s nothing else that could be wrong regarding privilages on Win machines.

Any help will be appreciated!

Using:

  • Win7 x64

  • git installed from msysGit -> Git-1.6.5.1-preview20091022.exe


[update]

  • as VonC suggested it might be a bug in this release of msysGit

Workaround

Use TortoiseGit to create a repo in the directory that’s causing you problems. Good chance it will be successfull.

Sometimes Git GUI (from msysgit) will successfully create a ‘troublesome’ repo (worked on my last repo in this folder, not this one though).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:14:36+00:00Added an answer on May 13, 2026 at 1:14 pm

    It may be related to a bug with Git1.6.5.1 on 64 bit: this Japanese tweet mentions

    msysgit 1.6.5.1 だと”error: unable to create directory for [project]/.git/HEAD.”とか言ってリポジトリが作れなかった。
    散々悩んだ後、1.6.3.2にバージョン下げたらあっさり成功

    Which Google ruffly translates as:

    it msysgit 1.6.5.1 “error: unable to create directory for [project] / .git / HEAD.” Nor could they pull the repository including me.
    After the devastating agony, 1.6.3.2 version下Getara success lightly

    So a downgrade to 1.6.3.2 could be the answer here.
    But I did not found any opened bug supporting that.

    As they say: なんじゃこりゃ。(WTF) 😉

    Check also (if you are using a TortoiseGit), to use the 64-bit version and not the 32-bits one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to try create something like Zend's Server Pagecache. What I want to
Im try to create a spinner dynamically on press of a button. this is
I try to create a simple heroku app which clones a git repository, invokes
I try to create the simplest WinAPI window using assembly NASM. I have problem
I try to create a new file inside a JSP and try to save
In BitBucket if I try and create a repository into an existing folder I
I've got a Git repo from which I need to create a patch file
When I try to create an alias [alias] my-alias = submodule foreach 'git foo
I am still getting this error message, when I try to move my project
I try create a map for open ~/.vimrc, but open the ~/.vimrc only when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.