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
| [iyunv@chy01 ~]# cd /tmp
You have new mail in /var/spool/mail/root
[iyunv@chy01 tmp]# git clone git@192.168.212.12:/data/gitroot/sample.git
Cloning into 'sample'...
warning: You appear to have cloned an empty repository.
[iyunv@chy01 tmp]# cd sample/
[iyunv@chy01 sample]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Nov 22 00:14 .
drwxrwxrwt. 15 root root 4096 Nov 22 00:14 ..
drwxr-xr-x 7 root root 4096 Nov 22 00:14 .git
[iyunv@chy01 sample]# vim discuzz.html
[iyunv@chy01 sample]# git add discz.html
[iyunv@chy01 sample]# git commit -m "daima"
[master d22de14] daima
1 file changed, 470 insertions(+)
create mode 100644 discz.html
[iyunv@chy01 sample]# git push
Counting objects: 3, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 252 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
To git@192.168.212.12:/data/gitroot/sample.git
a2ee2f6..d22de14 master -> master
如上是上传discuz的代码
|