1ssh 认证以后
2.提交代码到master
[root@192 ~]# git clone git@192.168.56.11:develop/myone.git
[root@192 ~]# 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
[root@192 myone]# touch index.html
[root@192 myone]# ll
total 0
-rw-r--r-- 1 root root 0 May 8 00:38 index.html
[root@192 myone]# git add index.html
[root@192 myone]# ls
index.html
[root@192 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
[root@192 myone]#
[root@192 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 git@192.168.56.11:develop/myone.git
* [new branch] master -> master
[root@192 myone]# ll
total 0
-rw-r--r-- 1 root root 0 May 8 00:38 index.html
[root@192 myone]#