Can‘t connet to repository from configured remote.
2017-06-09 22:26
323 查看
Can‘t connet to repository from configured remote.You could want to check .git config.Do you want to proceed anyway?
这是我之前在用Android Studio同步到GitHub上时,遇到的同步异常的问题,需要检查配置文件。我点了yes,接下来就报了各种错误,大致意思是用户名和邮箱和github上的用户名邮箱不对应。
但是在github我的账户中,这个工程还是创建成功,却是个空壳。删除了github上的工程,再来看看上面as的这个提示,它希望我去检查一下.gitconfig这个配置文件。
因为之前报错提示说用户名和邮箱不正确的错误。那么可能需要手动配置github上的用户名和邮箱了
.gitconfig这个文件在 C:\Users\用户名.gitconfig(win7/win8系统),打开会看到user标签
[user]
name = 用户名
email = 邮箱
修改成github上的用户名和邮箱就可以了。
也可以使用命令行来设置:
Git config –global user.name 用户名
git config –global user.email 邮箱
配置完成了,再来看我的本地工程,文件变成绿色的了,因为之前提交过一次,所以我需要撤销掉之前的操作,恢复到之前未提交的状态
撤销操作http://blog.csdn.net/yishion_l/article/details/72972443
相关文章推荐
- Can‘t connet to repository from configured remote.
- SSH - GitLab: Deploy keys are not allowed to push code. fatal: Could not read from remote repository
- SSH - GitLab: Deploy keys are not allowed to push code. fatal: Could not read from remote repository
- MySQL复制报错(Slave failed to initialize relay log info structure from the repository)
- Push failed: Failed with error: fatal: Could not read from remote repository.
- github常见操作和常见错误! fatal: Could not read from remote repository.
- mysql Can not read response from server. Expected to read 4 bytes 异常
- ansible error:failed to resolve remote temporary directory from ansible-tmp
- git Could not read from remote repository 解决
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection w
- 解决Could not read from remote repository问题,为GitHub账号添加SSH Keys。图片案例
- Can OGG Version 11 Be Used to Pump/Move Trails Generated from Version 9 or 10? (文档 ID 1297283.1)
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- Permission denied (publickey). fatal: Could not read from remote repository.
- How to Export and Import the AWR Repository From One Database to Another (文档 ID 785730.1)
- Connect to the mysql dataase from remote server
- Can I use NDMP to backup from (or to) appliance?
- How to find error message from OMS repository
- ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
- svn: Can't convert string from 'UTF-8' to native encoding