Git----错误收集及解决

1. git pull 更新报错

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

解决方式:
1 检查远程关联 git remote -v
$ git remote -v
origin xxx (fetch)
origin xxx (push)
2 移除远程的origin
$ git remote rm origin
3 重新添加远程origin
$ git remote add origin git@xxxxx .git(这里是项目的远程git地址)
4 再次查看远程关联
$ git remote -v
origin git@xxxxx(fetch)
origin git@xxxxx(push)
如果到了这一步问题就解决了 可以使用git pull 了

你可能感兴趣的:(Git命令行,android,git)