mingche 发表于 2018-1-12 20:05:46

git 远程仓库建立

  远程server:
  
1075mkdir gits
  1076chmod -R 777 gits/
  1077ll
  1078cd gits
  1079git init
  1080mkdir aa
  1081cd aa
  1082echo '111'>>a.txt
  1083cd ..
  1084ll
  1085git add .
  1086git commit -m '111';
  1087git remote add origin ssh://root@192.168.0.103/home/gits/.git
  1088pwd
  1089git push origin master
  1090history
  

  
本地:
  
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.
  
页: [1]
查看完整版本: git 远程仓库建立