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
相关推荐
有同事要进步7 小时前
如何在github或者是gitlab上创建空文件
gitlab·github
欣欣之王来了1 天前
Vue3项目脚手架:Vite vs Vue CLI怎么选?
前端·学习·架构·项目·vue3教程
GoodStudyAndDayDayUp2 天前
gitlab私有化跑CICD
gitlab·gitlab私有化跑cicd
成为你的宁宁2 天前
【Gitlab测试项目】
gitlab·devops
_可乐无糖4 天前
GitLab CI 脚本之 CI_COMMIT_AUTHOR
ci/cd·gitlab
代码山河4 天前
第一个Java程序:Hello World从零编写与运行
java·学习·架构·教程·面向对象·项目
欣欣之王来了5 天前
开发环境准备:Node.js、npm、VS Code安装配置
前端·学习·架构·项目·vue3教程
_可乐无糖5 天前
GitLab CI 脚本之 dependencies 和 needs
ci/cd·gitlab
Fan_5586 天前
4核8G云服务器部署GitLab内存耗尽解决方案
gitlab
洋就在江州6 天前
gitlab-cicd 离线集成——springboot-cicd (非docker形式,shell形式)
java·spring boot·后端·ci/cd·gitlab·gitlab-runner