Git----Error collection and resolution

1. git pull update error

fatal: ‘xxx’ does not appear to be a git repository fatal: Could not read from remote repository

Solution:
1 Check the remote association git remote -v
$ git remote -v
origin xxx (fetch)
origin xxx (push)
2 Remove the remote origin
$ git remote rm origin
3 Re-add the remote origin
$ git remote add origin git@xxxxx .git (here is the remote git address of the project)
4 Check the remote association again
$ git remote -v
origin git@xxxxx(fetch)
origin git@xxxxx(push)
If the problem is solved at this step, you can use git pull

Guess you like

Origin blog.csdn.net/u010689434/article/details/125521076