1 Git和Github
Git是版本控制软件,Github是基于Git打造的网站。
Git的三个概念:提交commit,仓库repository,分支branch
代码的变化是以提交commit为单位记录下来。一般项目根文件夹是仓库repository。根据不同的人和不同的需求分开写,最后合并。
2 安装
git下载
安装时选择安装位置,这里选vcode作为编辑器,其他默认就行
3 下载代码
使用git命令
地址:https://github.com/singgel/JAVA.git
进入到想要保存项目的文件夹,右键,git bash here
输入命令,就开始下载
git clone https://github.com/singgel/JAVA.git
star
README.md
issues
LICENSE
4 怎么找开源项目
• https://github.com/trending/
• https://github.com/521xueweihan/HelloGitHub
• https://github.com/ruanyf/weekly
• https://www.zhihu.com/column/mm-fe
5 Github上特殊的查找资源小技巧
• awesome xxx,能找到和xxx有关的百科全书
• xxx sample,找例子
• xxx starter或者xxx boilerplate,找空项目架子
• xxx tutorial,找教程
6 Github Desktop提交项目到Github
下载链接
可以先在Github上新建仓库,然后clone到本地
本地修改之后,先commit
再fetch
也可以先new repository,再重复上述步骤