记录生活的点点滴滴!
GitHub简介
GitHub 可以托管各种Git版本库,并提供一个web界面,但与其它像 SourceForge或Google Code这样的服务不同,GitHub的独特卖点在于从另外一个项目进行分支的简易性。为一个项目贡献代码非常简单:首先点击项目站点的“fork”的按钮,然后将代码检出并将修改加入到刚才分出的代码库中,最后通过内建的“pull request”机制向项目负责人申请代码合并。已经有人将GitHub称为代码玩家的MySpace。GitHub主要用Rails实现。在下面的我们会详细讲解GitHub使用。
注册GitHub账号(跟注册QQ一样)

1、下载安装Git工具(https://git-scm.com/)
windows用户直接双击安装文件,使用默认安装选项即可。
Mac用户在命令行中直接输入 git命令,按照提示默认选项 自动安装。
或者安装内置git的windows神器——Cmder(建议安装完整版)
Cmder界面美观,舒适

2.安装完git/Cmder后, 安装中文版和英文版的TortoiseGit

安装完成后右键显示:

3. Git文件上传
我们-点击 Git clone

第一个地址在Github的 Clone with HTTPS 选项上面
第二个地址 填写自己要共享、上传的本地文件夹地址

我们点击确定,等待代码完全同步下来;完成之后,它会显示成功done;
在本地文件夹下创建一个文件,上传;




推送到我们的主分支里面,我们点击确定

接着就可以看到我们的文件上传到Github仓库了;

网友评论