gitLab上传项目代码

在gitlab上创建项目后,没有显示仓库菜单,也看不到分支信息

这时,需要在本地创建好项目代码,然后在在项目代码的文件夹下,右键点击,使用git命令执行如下命令

Git global setup
git config --global user.name "wanga xiaofei"
git config --global user.email "1401431383@qq.com"

Create a new repository --克隆空代码到本地以及生成远程的主分支
git clone http://39.162.1.200:15001/13213161636/cs.git
cd cs
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main

Push an existing folder --推出本地项目代码
cd existing_folder
git init --initial-branch=main
git remote add origin http://39.162.1.200:15001/13213161636/cs.git
git add .
git commit -m "Initial commit"
git push -u origin main

Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin http://39.162.1.200:15001/13213161636/cs.git
git push -u origin --all
git push -u origin --tags
相关推荐
you来有去14 小时前
记录一下在k3s快速创建gitlab
java·kubernetes·gitlab
木二21 小时前
001.GItLab介绍及云原生部署
gitlab·cicd
User_undefined2 天前
批量将gitlab仓库转移到gitea中
gitlab·gitea
秋の水2 天前
使用Docker Desktop部署GitLab
docker·gitlab
深情不及里子5 天前
纯手工搭建整套CI/CD流水线指南
ci/cd·gitlab·jenkins·harbor
AliCloudROS6 天前
阿里云ACK+GitLab企业级部署实战教程
k8s·gitlab·helm·ack·计算巢
{⌐■_■}6 天前
【gitlab】认识 持续集成与部署
ci/cd·log4j·gitlab
JAVA坚守者12 天前
Jenkins+maven+gitlab+shell 实现项目自动化部署
gitlab·jenkins·maven
大熊程序猿12 天前
jenkins 配置ssh拉取gitlab
ssh·gitlab·jenkins
到不了p8不改名13 天前
gitlab无法登录问题
运维·服务器·容器·centos·gitlab·jenkins