fatal: 'origin' does not appear to be a git repository

后端 未结 6 1057
情深已故
情深已故 2020-12-22 18:26

I\'ve a repository moodle on my Github account which I forked from the official repository.

I then cloned it on my local machine. It worked

6条回答
  •  爱一瞬间的悲伤
    2020-12-22 19:14

    It is possible the other branch you try to pull from is out of synch; so before adding and removing remote try to (if you are trying to pull from master)

    git pull origin master
    

    for me that simple call solved those error messages:

    • fatal: 'master' does not appear to be a git repository
    • fatal: Could not read from remote repository.

提交回复
热议问题