git关联githup和码云

1.与已有的本地仓库关联git remote add origin git@github.com:michaelliao/learngit.git然后就可以协作开发push与pull

2.第二种方法直接clone 假设我们从零开发,那么最好的方式是先创建远程库,然后从远程库克隆git clone git@github.com:wuhua1/aliyun.git

如何协作:要那个分支就下载那个,上传那个分支就上传那个

git push origin master

git pull origin master

posted @ 2017-11-08 12:51  无花1  阅读(246)  评论(0编辑  收藏  举报