【gitlab】本地项目上传gitlab

需求描述

解决方法

下面的截图是gitlab空项目的描述

上传一个本地项目按其中"Push an existing folder"命令即可。

以renren-fast项目为例

bash 复制代码
# 用git bash 下载renren-fast项目
git clone https://gitee.com/renrenio/renren-fast.git

# 在renren-fast的所属目录 打开git bash

# 进入renren-fast目录
cd renren-fast

# 执行gitlab空目录下的命令提示
git init --initial-branch=master
git remote add origin=http:192.168.61.129:8000/root/test-one.git
git add .
git commit -m "Initial commit"
git push -u origin master
# 在这步之后输入gitlab的用户名和密码即可

上述把main分支替换层了master分支。

参考文章

相关推荐
东北甜妹2 天前
DevOps 和 Git,Gitlab
git·gitlab·devops
qq_白羊座2 天前
GitLab CI + Jenkins 双流水线模式Jenkins 端配置
ci/cd·gitlab·jenkins
qq_白羊座2 天前
GitLab CI 与 Jenkins
ci/cd·gitlab·jenkins
lisanmengmeng2 天前
gitlab 配置的jenkins 链接错误
运维·gitlab·jenkins
qq_356408663 天前
Kubernetes 部署 GitLab Runner 及 Java CI/CD 实践指南
java·kubernetes·gitlab
Niliuershangba4 天前
ChestnutCMS 栗子内容管理系统:从入门到模板开发实战
java·git·开源·gitlab·github·开源软件·gitcode
heimeiyingwang6 天前
【架构实战】GitOps实践:让运维更优雅
架构·gitlab·jenkins
中国lanwp7 天前
GitLab 按访问IP动态切换项目下载/克隆地址原理与配置说明
网络协议·tcp/ip·gitlab
heimeiyingwang7 天前
【架构实战】Jenkins+GitLab CI/CD:持续集成与持续部署实践
架构·gitlab·jenkins
ASKED_20198 天前
GitLab CI|CD 配置笔记
笔记·ci/cd·gitlab