1、注意要在远程仓库添加公钥
2、添加远程仓库
git remote add 远程仓库名称 远程仓库地址
eg:git remote add origin1 git@47.98.105.119:/index.git
3、将主版本推送到远程仓库
git push 远程仓库名称 版本名称
eg:git push origin1 master
远程仓库管理
查看当前远程仓库 git remote -v
添加远程地址 git remote add 远程仓库名 远程仓库地址
删除远程仓库 git remote remove 远程仓库名