gitlab上传新创建的工程项目

Command line instructions

Git global setup
复制代码
git config --global user.name "JackChen"
git config --global user.email "jack@abc.com"
Create a new repository
复制代码
git clone git@10.0.1.123:jack/aaa-xxx-web.git
cd aaa-xxx-web
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
复制代码
cd existing_folder
git init
git remote add origin git@10.0.1.123:jack/aaa-xxx-web.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
复制代码
cd existing_repo
git remote rename origin old-origin
git remote add origin git@10.0.1.123:jack/aaa-xxx-web.git
git push -u origin --all
git push -u origin --tags
相关推荐
Fan_5584 小时前
4核8G云服务器部署GitLab内存耗尽解决方案
gitlab
洋就在江州5 小时前
gitlab-cicd 离线集成——springboot-cicd (非docker形式,shell形式)
java·spring boot·后端·ci/cd·gitlab·gitlab-runner
代码山河8 小时前
Java语言特点:跨平台、面向对象、安全性详解
java·学习·架构·教程·面向对象·项目
成为你的宁宁1 天前
【Ubuntu 18.04安装Gitlab】
ubuntu·gitlab
长春的KAKA1 天前
GitLab 项目页面报 500 错误的完整修复记录:PostgreSQL 数据库损坏、统计表缺失及数据库迁移
数据库·postgresql·gitlab
代码山河1 天前
JDK、JRE、JVM的区别:一文讲清楚Java运行环境
java·学习·架构·教程·面向对象·项目
蓝胖的四次元口袋1 天前
GitLab知识梳理
gitlab
代码山河2 天前
Java学习路线图:2026年最新版,从入门到架构师
java·学习·架构·教程·面向对象·项目
欣欣之王来了2 天前
Python入门:Jupyter Notebook安装与使用指南
学习·架构·面向对象·项目·python教程
欣欣之王来了3 天前
前端开发学习路线图:2026年Vue方向最新版
前端·学习·架构·项目·vue3教程