|
远程server:
1075 mkdir gits
1076 chmod -R 777 gits/
1077 ll
1078 cd gits
1079 git init
1080 mkdir aa
1081 cd aa
1082 echo '111'>>a.txt
1083 cd ..
1084 ll
1085 git add .
1086 git commit -m '111';
1087 git remote add origin ssh://root@192.168.0.103/home/gits/.git
1088 pwd
1089 git push origin master
1090 history
本地:
li@li-PC MINGW64 /d
$ git clone ssh://root@192.168.0.103/home/gits/.git
Cloning into 'gits'...
root@192.168.0.103's password:
remote: 对象计数中: 4, 完成.
remote: Total 4 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4/4), 237 bytes | 0 bytes/s, done.
Checking connectivity... done.
|
|
|