fatal: Couldn't find remote ref master
致命的:无法找到远程参考主干也就是报错的意思。错误的提示内容意思是找不到需要连接的对象。
解决方法有以下几种:
!!如果是新建的仓库( repositories )的话在pull代码的时候,出现这个提示,可以忽略不计,直接提交就可以。
1.检查本地GIT的配置
git config user.name
/git config --global user.name
git config user.email/
git config --gloabl user.email
使用以上命令来检查本地的用户名和邮箱是否填写正确
2.检查远程仓库配置
git remote -v
如果远程仓库信息有误,则删除本地仓库配置,并且设置相关地址
git remote rm origin
git remote add origin XXXX