【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分支。

参考文章

相关推荐
牛奶咖啡133 天前
Git实践——GitLab服务器的部署与使用
gitlab·gitlab是什么·gitlab有啥用·gitlab适用场景·gitlab的版本如何选·安装部署gitlab·gitlab的使用
lisanmengmeng4 天前
Gitlab搭建
gitlab
dapeng-大鹏6 天前
记一次 GitLab Let‘s Encrypt 证书申请失败的排查与修复
gitlab
身如柳絮随风扬6 天前
使用 Docker 部署 GitLab 并分配用户账号 —— 保姆级教程
docker·容器·gitlab
鼎道开发者联盟7 天前
鼎享会 | 从手工到自动化:OpenClaw改造GitLab内部协作流程的全过程
自动化·gitlab·openclaw
ℳ₯㎕ddzོꦿ࿐8 天前
告别手工发版:用 GitLab CI/CD 打通前后端自动化部署的“任督二脉”
ci/cd·自动化·gitlab
ℳ₯㎕ddzོꦿ࿐8 天前
实战:在 Linux 系统用 Docker-Compose 优雅部署 GitLab 及防坑指南
linux·docker·gitlab
源图客8 天前
Linux(CentOS9)服务器部署gitlab-ce-18.11.1-ce.0.el9.x86_64.rpm
linux·服务器·gitlab
ℳ₯㎕ddzོꦿ࿐8 天前
实战篇:结合 GitLab CI/CD 实现 Spring Cloud 微服务自动化部署与防坑指南
spring cloud·ci/cd·gitlab
菜萝卜子9 天前
【Git】GitLab 18.9 全局服务器钩子(Server Hooks)官方规范与落地实践
服务器·git·gitlab