git clone --bare:fatal:repository不存在 [英] git clone --bare: fatal: repository does not exist
问题描述
我正在尝试创建一个新的存储库(根据a href =的手册) http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Serverrel =noreferrer> git-scm.com )
但是每次我得到这个致命错误:
致命:存储库poekoe不存在
所以这就是我在命令行中输入的内容:
git clone --bare --progress poekoe poekoe.git
我也试过这在一个sqeeze分配,它工作正常。
(git版本在挤压是:git版本1.7.2.5)
所有安装的包在wheezy发行版上是:
libcurl4-gnutls-dev
libexpat1-dev
gettext
vim
libz-dev
libssl- dev
git
所有的工作。
有人知道如何解决这个问题吗?
我以root身份运行脚本
git clone --bare - 进度poekoe poekoe.git
那个 git clone
仅在您当前的目录包含repo poekoe
。
如果您当前的文件夹为空,那么错误信息是有意义的。
网址部分建议使用绝对路径:
$ git clone --bare -l /home/proj/.git /pub/scm/proj.git
OP Bonifatiusk 报告在评论一个取决于git版本的解决方案:
我发现这个:
git --bare init poekoe.git
:这确实不同于使用- 裸机
与克隆的新版本的旧版本。
I am using git version 1.7.10.4 on debian Wheezy.
I am trying to create a new repository (according to the 'manual of git-scm.com) However everytime I get this fatal error:
fatal: repository 'poekoe' does not exist
So this is what I type at command line:
git clone --bare --progress poekoe poekoe.git
I also tried this on a sqeeze distribution and there it works fine. (git version on squeeze is: git version 1.7.2.5)
All installed packages on the wheezy distribution are:
libcurl4-gnutls-dev
libexpat1-dev
gettext
vim
libz-dev
libssl-dev
git
all to get this working.
Does anybody know how to fix this? I am running the script as root
git clone --bare --progress poekoe poekoe.git
That git clone
only works if your current directory does contain the repo poekoe
.
If your current folder is empty, then the error message makes sense.
The URLs section recommends using absolute paths:
$ git clone --bare -l /home/proj/.git /pub/scm/proj.git
The OP Bonifatiusk reports in the comments a solution depending on git version:
I found this:
git --bare init poekoe.git
: this is indeed different from older versions who will init a new repo using--bare
with clone.
这篇关于git clone --bare:fatal:repository不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!