Can‘t connet to repository from configured remote.
2017-06-12 13:14
239 查看
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.
相关文章推荐
- 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
- github clone "Permission denied (publickey). fatal: Could not read from remote repository."
- 解决svn: Can’t convert string from ‘UTF-8′ to native encoding
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- How can I recover a file that I deleted in my local repo from the remote repo in Git?
- tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
- Permission denied (publickey). fatal: Could not read from remote repository
- ansible error:failed to resolve remote temporary directory from ansible-tmp
- put file from local to remote server
- How to set maven default remote repository?
- log4j的1.2.15版本,在pom.xml中的顶层project报错错误: Failure to transfer javax.jms:jms:jar:1.1 from https://maven-repository.dev.java.net/nonav/repository......
- Windows平台下IDEA中git出现could not read from remote repository解决方案
- android.database.sqlite.SQLiteException: Can't upgrade read-only database from version 0 to 1:解决
- 解决git Could not read from remote repository.Please make sure you have the correct access rights
- svn update 目录包含中文时出错(svn:Can’t convert string from ‘UTF-8′ to native encoding)
- How To Remote Desktop from windows to Linux
- Pycharm Error "fatal: Could not read from remote repository."