GitHub Desktop 使用教程

GitHub Desktop 使用教程

新手向github desktop教程(windows):


什么是GitHub

github是一个基于git的代码托管平台,付费用户可以建私人仓库,我们一般的免费用户只能使用公共仓库,也就是代码要公开。

1.注册github帐号

登录github官网 www.github.com点击Sign up注册帐号。

2.下载gitbub桌面版

登录github desktop官网www.desktop.github.com下载最新的客户端。
GitHub Desktop 使用教程_第1张图片

3.建立代码库

登录桌面端的github帐号。
GitHub Desktop 使用教程_第2张图片
GitHub Desktop 使用教程_第3张图片
点击File->Add location repository 建立本机库的位置。
GitHub Desktop 使用教程_第4张图片
GitHub Desktop 使用教程_第5张图片
创建这个库
GitHub Desktop 使用教程_第6张图片
点击Fetch origin将本机库同步到github网站。
GitHub Desktop 使用教程_第7张图片
在官网登录自己的github帐号就能看到刚刚在本机上建立的库test.
GitHub Desktop 使用教程_第8张图片
在本机的库路径中建立一个文本文件用于测试。里面写了123456
GitHub Desktop 使用教程_第9张图片
这时能在changes中看到一个点,代表这个库有改动。test文件边上有个加号代表有文件加入。
GitHub Desktop 使用教程_第10张图片
左下角写入 文件的名字和描述,点击Commit to master。
GitHub Desktop 使用教程_第11张图片
再点击同步键 Fetch origin 将文件同步到网站中。
GitHub Desktop 使用教程_第12张图片
这样就可以在github网站中看到刚刚同步的信息了。
GitHub Desktop 使用教程_第13张图片


你可能感兴趣的:(github)