git-idea华为云上传项目

参考博客:IDEA+git+华为云配置 - it610.com

注:

push时输入华为云仓库地址:

第一次push失败:

 

 此时输入http密码!用户名是华为云http那里的!不是华为云账号!

如果已经输错:

$ git push -u origin master -f
remote: 用户名或密码错误,请输入正确的用户名[账户名/用户名]和密码!
remote: 具体可以点击 代码托管首页-设置我的HTTPS密码 查看
remote: 如果您设置了凭证管理[credential.helper], 请先清理.
fatal: repository 'https://codehub-cn-south-1.devcloud.huaweicloud.com/wzbwgafxt00001/museum_security1.git/' not found

改用SSH!(清理问题未解决,SSH更方便!不需要账号密码)

此时push报错:

 解决:

git pull --rebase origin master

此处参考博客:

【错误】上传新的项目出错 error: failed to push some refs to 'https://github.com/... - 一盏魂灯.渡佳人 - 博客园问题描述:在git bash中键入 $ git push origin master 进行提交的时候出现 如下错误: error: failed to push some refs to 'hhttps://www.cnblogs.com/zhangguorenmi/p/13143299.htmlpush成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值