English 中文(简体)
Unable to chdir() on Git/Cygwin
原标题:
  • 时间:2009-11-17 17:19:48
  •  标签:
  • git
  • cygwin

I installed Git via Cygwin on Windows Server. It works out very well. However there s a small issue that when I clone a repo use the command as following:

$git clone git@myserver:project.git

I always get the following error:

fatal:  /project.git : unable to chdir or not a git archive

but if I typed in the full path then it works

$git clone git@myserver:/home/git/repositories/project.git

Did anyone here face this problem before?

Regards, TL

问题回答

By default, git clone uses SSH as the transfer protocol. When connecting over SSH, you have to specify the full path to the repository -- you cannot use a relative path like project.git.

If the machine storing the repos instead uses git daemon to serve the repos, and you connect via the Git protocol, then you can specify base path for the repos using the --base-path=path flag for git daemon.





相关问题
cygwin file path tab completion not working

How can I set up Cygwin to have tab completion? Actually, I do have it automatically, but it does not seem to complete paths. How do I set it up to complete paths?

cygwin version of idle has erroneous I/O handling

I am using idle (python 2.5) via cygwin on a windows vista machine and when I try to open an already existing .py file I see the full file path /home/aaron/C:/cygwin/home/aaron/script.py on the ...

Trying to get a terminal to work in Emacs

I ve been having a lot of problems with emacs and trying to get the terminal to work with: M-x term I installed cygwin and I fixed up my .emacs to include the paths: (setenv "PATH" (concat "...

Piping Cygwin into a Python program

As a i m new to the whole Piping thing and Python I had recently encountered a problem trying to pipe Cygwin s stdin & stdout into a python program usin Python s subprocess moudle. for example I ...

Unable to chdir() on Git/Cygwin

I installed Git via Cygwin on Windows Server. It works out very well. However there s a small issue that when I clone a repo use the command as following: $git clone git@myserver:project.git I ...

Linux Development C/C++/bash/python on windows-7

Before resorting to stackoverflow, i have spend a lot of times looking for the solutions. I have been a linux-user/developer for few years, now shifting to windows-7. I am looking for seting-up a ...

Cygwin/Git/Gitosis unable to push new repository

I ve recently set up cygwin, git, and gitosis on my Windows Server 2003 box and am having troubles. I ve followed just about every tutorial I can find to the letter, and have confirmed that my git ...

热门标签