|
[www@salt-node4 ~]$ git clone git@salt-node4.damaicha.org-204:web/web_demo.git # 选择ssh方式的。 Cloning into 'web_demo'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
[www@salt-node4 ~]$ cd web_demo/
[www@salt-node4 web_demo]$ touch index.html
[www@salt-node4 web_demo]$ echo wangfei >index.html
[www@salt-node4 web_demo]$ git add index.html
[www@salt-node4 web_demo]$ git commit -m "add index.html"
[master 933b21a] add index.html
1 file changed, 1 insertion(+)
create mode 100644 index.html
[www@salt-node4 web_demo]$ git push
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 280 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@salt-node4.damaicha.org-204:web/web_demo.git
8699ef8..933b21a master -> master
|
|
|