Git版本控制——场景三:Working Remote

119 阅读1分钟

Working Remote

步骤1 - git remote
远端存储库与你的存储库之间能共享更改。远端存储库一般是构建服务器、一台团队成员的机器,或一个中心化存储,如Github.com。通过git remote命令添加远端存储库,一般是HTTPS链接或SSH链接,例如github.com/OcelotUproa…git@github.com:/OcelotUproar/ocelite.git.

$ git remote add origin /s/remote-project/1
$ git remote
origin

:本配置存放在了当前项目的./.git/config文件里,可以查看,
在这里插入图片描述

步骤2 - git push
使用git push将你的提交推到远端存储库。将