gitlab 随笔
输入:
$ git init
$ git add .
$ git commit -m 'init commit'
绿色部分为gitlab网页的项目创建后下面的ssh路径,也可以通过查看gitlab网页中的项目得知
$ git remote add origin git@xxx.xxx.x.xxx:xxxx/xxxx.git
然后输入
$ git push origin master
即可
2.代码的下载
打开你想要下载的文件夹,右键git bash here
输入代码
绿色部分为上面的ssh路径
git clone git@192.168.92.132:root/xxx.git
[root@node2 xxx]# git clone git@192.168.92.132:root/xxxx.git Cloning into 'xxx'... remote: Enumerating objects: 114, done. remote: Counting objects: 100% (114/114), done. remote: Compressing objects: 100% (11/11), done. remote: Total 114 (delta 4), reused 102 (delta 0) Receiving objects: 100% (114/114), 7.66 KiB | 0 bytes/s, done. Resolving deltas: 100% (4/4), done. [root@node2 xxx]#
本文来自博客园,作者:IT老登,转载请注明原文链接:https://www.cnblogs.com/nb-blog/p/10396410.html