github小白入门上手

参考博客:

入门设置:https://blog.csdn.net/nmjuzi/article/details/82184818

一、把github上的文件弄到本地:在bash里面:git clone https://github.com/...... 然后就把这个项目克隆到本地了。

       参考博客:https://www.cnblogs.com/jf-67/p/6415637.html

二、把本地的代码上传到github:在bash里面就 git remote add origin https://github.com/zlxzlxzlx/Test.git(关联到github上的那个仓库)

                                              git pull origin master

                                              git push -u origin master

       参考博客:https://blog.csdn.net/shanglizhangrui/article/details/80533141

扫描二维码关注公众号,回复: 7485918 查看本文章

总结:github可以把,本地的文件上传到你github的建的某一个仓库上,然后在github上可以随时修改内容,修改版本,就方便团队合作(可以在本地修改好了,再传上去嘛,相当于版本的更新),然后别人修改好了,你在clone下来,再修改,再上传。

然后上传与下载,可以通过git的命令行来实现。(主要都是关联http地址,也就是你这个仓库的地址)

猜你喜欢

转载自www.cnblogs.com/1starfish/p/11691320.html
今日推荐