GitLab上传本地项目

GitLab上传本地项目

使用IntelliJ IDEA创建一个springboot的demo,目录结构如下

image-20210314141520400

开启IntelliJ IDEA的版本控制,点击VCS->Enable Version Control INtegration… 开启后如下

image-20210314143925363

开始提交代码

  • 将代码add到缓存区

    image-20210314144212592

  • 将代码提交到本地仓库

    image-20210314144452421

    image-20210314144558219

首次提交设置用户名,邮箱

  • 推送代码至远程仓库

    image-20210314144855810

添加远程仓库地址

image-20210314145545531

image-20210314164137052

点击ok即可推送完成。

image-20210314183948718

:若出现连接拒绝的情况:fatal: unable to access ‘http://192.168.142.131/yunshan/demo_jenkins.git/’: Failed to connect to 192.168.142.131 port 80: Connection refused

请在本地配置如下内容:

# 配置代理
git config --global http.proxy http://ip:port

git config --global https.proxy http://ip:port
# 取消代理
git config --global --unset http.proxy

git config --global --unset https.proxy
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值