git clone --bare: fatal: repository does not exist

前端 未结 3 1135
醉梦人生
醉梦人生 2020-12-16 18:26

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 fata

3条回答
  •  清酒与你
    2020-12-16 18:58

    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.

提交回复
热议问题