git报错:remote: [session-474e1980] Access denied fatal: unable to access... 403
报错:
在输入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 rejected] HEAD -> master (pre-receive hook declined) error: failed to push some...
git push 报错 ...[remote rejected] HEAD -> master (pre-receive hook declined) error: failed to push ...
- git报错remote: HTTP Basic: Access denied
原因 本地git配置的用户名.密码与gitlab上注册的用户名.密码不一致. 解决办法 如果账号.密码有变动,在git命令行里执行一下如下命令 git config --system --unset ...
- git 报错:Please make sure you have the correct access rights and the repository exists
提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.是公钥出问题了,要 ...
- Ubuntu解决git报错:remote: [session-6b4cda96] Access denied的方法
1. 问题描述 当我尝试连接本地文件到远程仓库时,输入git push -u origin "master"时报错: remote: [session-6b4cda96] Acce ...
- 【随手记录】git 克隆项目中时出现fatal: unable to access ‘https://github 类错误
问题描述:当使用git clone 克隆项目时遇到问题:fatal: unable to access 'https://github.com/XXX': Failed to connect to X ...
- jenkins 源码管理 returned status code 128: stdout: stderr: fatal: unable to access “****” 403 解决办法
在配置jenkins 源码管理 远程链接git时 提示 报错 Failed to connect to repository : Command"usr/bin/git ls-remote ...
- fatal: unable to access ‘‘: Failed to connect to 27.0.0.1 port 7890 after 2097 ms:Connection
今天在使用 git pull 的时候发生了这个错误 fatal: unable to access '': Failed to connect to 27.0.0.1 port 7890 after ...
- Git报错:remote: HTTP Basic: Access denied的解决方法
背景 由于一些zz行为,在开发的中途更改了本地的一些git信息设置.导致最终想提交代码时,Git 执行 git push 报错如下: remote: HTTP Basic: Access denied ...
- git克隆代码报错remote: HTTP Basic: Access denied fatal: Authentication failed for的解决方案之一
remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://xxx.git/' 在克隆代码时输入一次错误的用户 ...
最新文章
- Python中time模块详解
- python3.8安装pip-CentOS7.2安装python3.8与pip
- LinQ高级查询、组合查询
- 《 Python树莓派编程》——2.7 总结
- 作者:​覃海焕(1978-),女,博士,上海电机学院讲师。
- Ubuntu下安装JDK1.8并配置开发环境
- /etc/sudoers文件的分析以及sudo的高级用法
- magento2 发邮件
- html 滑动门效果,js实现简洁的滑动门菜单(选项卡)效果代码
- 互联网产品经理的工作职责
- DUBBO启动为啥不用web容器启动
- 5M1E分析法—质量管理纵向无死角
- 自动柜员机是不是微型计算机,微型计算机基础知识.pptx
- [线性控制理论]关于Laplace变换中求导运算的结果推导
- 无偏性 VS 一致性
- android 动态扫码框,Android 一行代码接入扫码功能 (CameraX + zxing)持续更新....
- 注解(Annotation)
- 利用声音传感器控制led灯功能_利用光敏电阻加声音传感器制作声控灯
- 找出矩阵中的最大正方形
- OFDM子载波频率 知乎_如何生成复杂的调制信号?