利用pycharm将代码pash推送到远程gitlab

目录

方法 一

  1. 新建 gitlab项目haha
    在这里插入图片描述

简略步骤:

(base) E:\09-code\02-wind_profile>git remote add origin http://12.36.171.165/zhaoxiaozheng/haha.git
(base) E:\09-code\02-wind_profile>git push -u origin master

复杂过程:

(base) E:\09-code\02-wind_profile>git remote add origin http://12.36.171.165/zhaoxiaozheng/haha.git
error: remote origin already exists.

(base) E:\09-code\02-wind_profile>git remote -v
origin  http://12.36.171.165/zhaoxiaozheng/wind_profile_cluster.git (fetch)
origin  http://12.36.171.165/zhaoxiaozheng/wind_profile_cluster.git (push)
orign   http://12.36.171.165/zhaoxiaozheng/test.git (fetch)
orign   http://12.36.171.165/zhaoxiaozheng/test.git (push)

(base) E:\09-code\02-wind_profile>git remote rm origin

(base) E:\09-code\02-wind_profile>git remote rm orign
(base) E:\09-code\02-wind_profile>git remote -v
origin  http://12.36.171.165/zhaoxiaozheng/haha.git (fetch)
origin  http://12.36.171.165/zhaoxiaozheng/haha.git (push)

(base) E:\09-code\02-wind_profile>git push -u origin master
Enumerating objects: 1239, done.
Counting objects: 100% (1239/1239), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1214/1214), done.
Writing objects: 100% (1239/1239), 12.70 MiB | 2.75 MiB/s, done.
Total 1239 (delta 151), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (151/151), done.
To http://10.35.161.175/zhaoxiaozheng/haha.git
 * [new branch]      master -> master
branch 'master' set up to track 'origin/master'.

在这里插入图片描述
push 成功!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值