idea项目推送gitee/github

选择需要的项目创建本地Git仓库

image-20240622102305729

image-20240622102329578

添加到暂存区

image-20240622102503452

第一次提交

image-20240622103356844

或者点击这里

写备注并commit

image-20240622105221178

推送远程仓库

image-20240622105431965

填写地址

image-20240622105459942

image-20240622105750595

image-20240622105814842

image-20240622105901265

image-20240622110200218

解决上图警告

image-20240622110212719

右键打开项目,输入

git pull origin master –allow-unrelated-histories
 
git push -u origin master -f

image-20240622110541825

推送成功

image-20240622110610614

idea项目推送github及克隆github项目

创建仓库

image-20240622111204703

image-20240622111201602

idea克隆

image-20240622111456733

image-20240622111519501

image-20240622111554588

image-20240622111946023

登录,成功克隆

image-20240622112313220

推送本地项目到远程仓库

和上述一样,地址变化了而已

推送失败打开git窗口输入

git config --global --unset https.proxy
git config --global --unset http.proxy
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值