gitlab代码仓库的初始化
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gitlab代码仓库的初始化相关的知识,希望对你有一定的参考价值。
1ssh 认证以后
2.提交代码到master
[[email protected] ~]# git clone [email protected]:develop/myone.git [[email protected] ~]# ls anaconda-ks.cfg git-2.7.4 gitlab-ce-8.9.5-ce.0.el7.x86_64.rpm git-v2.7.4.zip myone [[email protected] myone]# touch index.html [[email protected] myone]# ll total 0 -rw-r--r-- 1 root root 0 May 8 00:38 index.html [[email protected] myone]# git add index.html [[email protected] myone]# ls index.html [[email protected] myone]# git commit -m "add index.html" [master (root-commit) 82eac98] add index.html 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 index.html [[email protected] myone]# [[email protected] myone]# git push origin master Counting objects: 3, done. Writing objects: 100% (3/3), 210 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To [email protected]:develop/myone.git * [new branch] master -> master [[email protected] myone]# ll total 0 -rw-r--r-- 1 root root 0 May 8 00:38 index.html [[email protected] myone]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1922907
以上是关于gitlab代码仓库的初始化的主要内容,如果未能解决你的问题,请参考以下文章