在输入git remote add origin连接远程仓库的时候报错
$ git push --set-upstream origin html remote: [session-474e1980] Access denied fatal: unable to access 'https://gitee.com/huyi612/hm-dianping.git/': The requested URL returned error: 403错误原因:
1.输入命令 cat ~/.gitconfig查看当前用户
之前在git bash中配过ssh指向的和远程的不符合,删除本地用户凭证再重新登录。
1、搜索凭据管理器----点击Window凭据–发现git:http://gitee.com有两条找到不与 cat ~/.gitconfig查看当前用户删除即可。
2、删除后打开终端输入git remote -v 命令 查看远程仓库地址
3、再输入 git remote rm origin 命令 删除远程地址
4、再添加新的地址 git remote add origin 你自己的项目git地址
$ git remote add origin https://gitee.com/gusongqi/hm-dianping.git
5、在输入之前的命令$ git push --set-upstream origin html 推送成功。


![git报错:remote: [session-474e1980] Access denied fatal: unable to access... 403 git报错:remote: [session-474e1980] Access denied fatal: unable to access... 403](http://www.mshxw.com/aiimages/31/868153.png)
