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
相关推荐
puamac1 天前
gitLab CI/CD 执行流程说明
ci/cd·gitlab
维度跃迁笔记1 天前
2核4G轻量服务器部署GitLab实战:配置调优与CI/CD拆分方案
服务器·ci/cd·gitlab
Byron Loong2 天前
GitLab 全部权限角色详解
gitlab
Cat_Rocky2 天前
Gitlab安装与配置
linux·运维·gitlab
D4c-lovetrain2 天前
CentOS9 GitLab 完整配置全流程
gitlab
puamac2 天前
GitLab CI/CD 故障排查手册
ci/cd·gitlab
Aubrey-J3 天前
老版本Gitlab SSL证书自动续期错误KeyError: key not found: “token“解决
网络协议·gitlab·ssl
java_logo4 天前
Docker 部署 GitLab CE 完整版教程
docker·容器·gitlab·gitlab docker部署·gitlab部署文档·gitlab部署·gitlab部署教程
隔窗听雨眠5 天前
GitLab CI前端加载慢优化实录
ci/cd·gitlab
东北甜妹7 天前
DevOps 和 Git,Gitlab
git·gitlab·devops