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

前端 未结 3 1116
醉梦人生
醉梦人生 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.

    0 讨论(0)
  • 2020-12-16 19:00

    you get this error(fatal: repository 'pekoe' does not exist) when you don't follow the steps properly in git.

    step-1:: install git and config with command

    git config --global user.name eg., mack09 git config --global email

    step-2:: the go to Github website create a new repository step-3:: copy the address from right-hand side https://github.com/mack09/repo.git

    step-4:: go to git bash or cmd , create a folder to store all your project do go to the folder you created and now you are in created folder. step-5:: do this git clone https://github.com/mack09/repo.git step-6:: add heart.txt and git commit-m " message" and git push origin master. I tried this step it worked so try it and reply whatever the result.

    0 讨论(0)
  • 2020-12-16 19:01

    Sharing for future readers...

    One possibility can be access rights. Make sure that you have at least read access to your main repository which you're trying to interact with.

    On web based git solutions such as Bucket and Hub, this issue is unlikely since access permissions is handled by them in many cases.

    0 讨论(0)
提交回复
热议问题