“fatal: Not a git repository (or any of the parent directories)” from git status

后端 未结 13 2248
深忆病人
深忆病人 2020-12-04 14:54

This command works to get the files and compile them:

git clone a-valid-git-url

for example:

git clone git://cfdem.git.sour         


        
相关标签:
13条回答
  • 2020-12-04 15:46

    In my case, the original repository was a bare one.

    So, I had to type (in windows):

    mkdir   dest
    cd dest
    git init
    git remote add origin a\valid\yet\bare\repository
    git pull origin master
    

    To check if a repository is a bare one:

    git rev-parse --is-bare-repository 
    
    0 讨论(0)
提交回复
热议问题