1ssh 认证以后
2.提交代码到master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
[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]
#
|
本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1922907,如需转载请自行联系原作者