sourceTree是什么?
就是gitHub可视化界面,你可以摆脱用终端命令来操作gitHub的烦恼了。有的人就偏爱终端命令。对这种人说心里话我很佩服的。主要是用的少记不住啊,要不然我也喜欢用终端。别问我为什么。如果喜欢用终端的这里有个github使用指南https://github.com/NeuOL/neuola-legacy/wiki/github使用指南。
分支是github的最大特点了,我翻了很多讲解git分支的,这篇博文感觉写的挺好的。
https://www.oschina.net/question/31384_157479
我这里就不讲述github上的东西了。百度谷歌那些的博客写的很好,都看的懂,我再写都是移花接木,按部就班。
在使用sourceTree之前你需要有个github账户。免费的,自己去注册。github的由来有一个很精彩的故事,自己去百度吧!值得一看。
第一步

第二步

这里需要绑定一个github账户,如果没有密钥的话需要申请一个SSH的密钥,一切都按提示的步骤来就行。
这里
名称:是你的存储库的名称 (HelloWorld)
描述:是你对这个存储库的描述 (这是一个新库)
类型:git
取消勾选私有库。(按个人吧,我取消的)
然后在远端选项是这样的

克隆下来,选择一个存储的路径
本地选项里就会多一栏
(如果原来github 上有工程,远端选项会显示,可以直接克隆)

双击打开

在finder中打开,扔进去一个工程后。

勾选未暂存文件(本地做一个记录)

填写描述 勾选立即推送变更大到 origin/master

提交就行了。
我们到github 上看看

可以供别人下载了,相当方便。我个人觉得比svn好用。

删除存储库repository 需要到 setting里面删除


对于里面的其他功能,分支,合并。参考前面推荐的博文 https://www.oschina.net/question/31384_157479
网友评论