最佳答案
This command works to get the files and compile them:
git clone a-valid-git-url
for example:
git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghts
However, git status
(or any other git command) then gives the above fatal: Not a git repository (or any of the parent directories)
error.
What am I doing wrong?