issues
search
fengjun2016
/
-
0
stars
0
forks
source link
2017/10/30 添加和关联远程版本仓库 git remote add origin git@github.com:michaelliao/learngit.git | git push -u origin master
#27
Open
fengjun2016
opened
6 years ago
fengjun2016
commented
6 years ago
要关联一个远程库,使用命令git remote add origin git@server-name:path/repo-name.git;
关联后,使用命令git push -u origin master第一次推送master分支的所有内容;
此后,每次本地提交后,只要有必要,就可以使用命令git push origin master推送最新修改;
分布式版本系统的最大好处之一是在本地工作完全不需要考虑远程库的存在,也就是有没有联网都可以正常工作,而SVN在没有联网的时候是拒绝干活的!当有网络的时候,再把本地提交推送一下就完成了同步,真是太方便了!