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

后端 未结 13 2288
深忆病人
深忆病人 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:41

    I just got this message and there is a very simple answer before trying the others. At the parent directory, type git init

    This will initialize the directory for git. Then git add and git commit should work.

提交回复
热议问题