Gitlab私有仓库搭建
1、配置yum源:# vi /etc/yum.repos.d/gitlab-ce.repo复制以下内容:[gitlab-ce]name=Gitlab CE Repositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/gpgcheck=0enabled=1 2、更新本地yum缓存:# yum m …
1、配置yum源:# vi /etc/yum.repos.d/gitlab-ce.repo复制以下内容:[gitlab-ce]name=Gitlab CE Repositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/gpgcheck=0enabled=1 2、更新本地yum缓存:# yum m …
git clone git@gitlab.liyupei.cn:root/test1.git #从Gitlab上clone项目 cd test1 git add test1.txt #将test1.txt添加到仓库,等待提交 git commit -m “This is a test” #将test1.txt提交到本地仓库 git pull origin master #拉取远程mast …