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

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

    in my case, i had the same problem while i try any git -- commands (eg git status) using windows cmd. so what i do is after installing git for window https://windows.github.com/ in the environmental variables, add the class path of the git on the "PATH" varaiable. usually the git will installed on C:/user/"username"/appdata/local/git/bin add this on the PATH in the environmental variable

    and one more thing on the cmd go to your git repository or cd to where your clone are on your window usually they will be stored on the documents under github

    cd Document/Github/yourproject
    

    after that you can have any git commands

提交回复
热议问题