【git】 remote: Repository not found.

推送时,提示如下错误:

git.exe push --progress "origin" master
remote: Repository not found.
fatal: Authentication failed for 'https://www.github.com/xxxxx/xxxxxx.git/'
 
根据提示仓库未找到,下面又说授权不对
打开.git文件夹,查看config文件。
 

 

 

仓库地址未发现异常(其实就是地址不对)
再三确认用户名和密码,输入没问题。
 
后来发现提示信息中的仓库地址  是www.github.com/xxxx
而我的config文件中仓库地址是:github.com/xxxxx

 

 

将config文件中地址改为www.github.com/xxxx后,打开git命令提示符界面  提交正常
 
PS:从网站拷贝下来的地址里没有www,直接是https://github.com/xxxxxx,但是项目.git文件夹中config文件里这么写就错了。
 
 
 

posted @ 2021-02-23 12:27  狼窝窝  阅读(2335)  评论(0)    收藏  举报