gitlab仓库readme

简介: gitlab仓库readme

Git 全局设置

git config --global user.name "Administrator"
git config --global user.email "admin@example.com"

创建一个新仓库

git clone http://192.168.120.204:8005/gitlab-instance-2bb86a61/Monitoring.git
cd Monitoring
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main

推送现有文件夹

cd existing_folder
git init --initial-branch=main
git remote add origin http://192.168.120.204:8005/gitlab-instance-2bb86a61/Monitoring.git
git add .
git commit -m "Initial commit"
git push -u origin main

推送现有的 Git 仓库

cd existing_repo
git remote rename origin old-origin
git remote add origin http://192.168.120.204:8005/gitlab-instance-2bb86a61/Monitoring.git
git push -u origin --all
git push -u origin --tags
相关文章
|
7月前
|
Shell 网络安全 开发工具
手把手教你配置Git客户端上传代码至Gitlab仓库
手把手教你配置Git客户端上传代码至Gitlab仓库
143 1
手把手教你配置Git客户端上传代码至Gitlab仓库
|
7月前
|
Linux 网络安全 数据安全/隐私保护
手把手教你使用Docker部署Gitlab仓库
手把手教你使用Docker部署Gitlab仓库
164 0
|
8月前
|
Linux
百度搜索:蓝易云【如何在CentOS7上搭建自己的GitLab仓库详解?】
现在,您已经成功在CentOS 7上搭建了自己的GitLab仓库。通过GitLab,您可以托管和管理您的代码,并与团队成员协同开发。
271 0
|
3月前
|
安全 Linux iOS开发
技术文档 | 使用 OpenSCA 批量扫描 Gitlab 仓库,盘点资产安心过节
按照下述教程快速批量扫描您的仓库,一旦新的攻击或0Day出现,通过资产清单即可快速定位漏洞及影响范围、有效缩短响应时间。
40 1
|
2月前
|
JavaScript Go 项目管理
云效常见问题之使用gitlab仓库将代码合并评审环节集成到云效如何解决
云效(CloudEfficiency)是阿里云提供的一套软件研发效能平台,旨在通过工程效能、项目管理、质量保障等工具与服务,帮助企业提高软件研发的效率和质量。本合集是云效使用中可能遇到的一些常见问题及其答案的汇总。
99 1
|
7月前
|
Cloud Native jenkins 持续交付
【云原生】使用PyCharm上传代码到Gitlab仓库并在Jenkins构建
【云原生】使用PyCharm上传代码到Gitlab仓库并在Jenkins构建
101 0
|
10月前
|
Linux 开发工具 数据安全/隐私保护
Linux系统 搭建gitlab仓库服务器
Linux系统 搭建gitlab仓库服务器
|
10月前
|
开发工具 数据安全/隐私保护 git
git: 修改gitlab仓库提交地址
git: 修改gitlab仓库提交地址
225 0
|
10月前
|
Kubernetes Devops 容器
k8s kubesphere 部署 GitLab仓库
k8s kubesphere 部署 GitLab仓库
|
11月前
|
缓存 网络安全 开发工具
Git学习与gitlab中央仓库搭建(详细介绍)
Git学习与gitlab中央仓库搭建(详细介绍)
232 0