SourceTree的简单使用
一:Git是什么?
Git是目前世界上最先进的分布式版本控制系统。
二:SVN与Git的最主要的区别?
SVN是集中式版本控制系统,版本库是集中放在中央服务器的,而干活的时候,用的都是自己的电脑,所以首先要从中央服务器哪里得到最新的版本,然后干活,干完后,需要把自己做完的活推送到中央服务器。集中式版本控制系统是必须联网才能工作,如果在局域网还可以,带宽够大,速度够快,如果在互联网下,如果网速慢的话,就纳闷了。
Git是分布式版本控制系统,那么它就没有中央服务器的,每个人的电脑就是一个完整的版本库,这样,工作的时候就不需要联网了,因为版本都是在自己的电脑上。既然每个人的电脑都有一个完整的版本库,那多个人如何协作呢?比如说自己在电脑上改了文件A,其他人也在电脑上改了文件A,这时,你们两之间只需把各自的修改推送给对方,就可以互相看到对方的修改了。
三、Git的客户端SouceTree的使用
Github账号
登录Github官网(https://github.com),注册我们的GitHub账号。
SourceTree
SourceTree是客户端的版本控制工具,是⼀个由git命令组合而成的可视化工具,支持创建、克隆、提交、push、 pull 和合并等操作。(https://www.sourcetreeapp.com)
1.1 创建仓库 (⾸页->点击右上角加号->选择’new repository’)

填写仓库信息


克隆仓库 (与之前创建的仓库建立联系) 打开SourceTree,点击 ‘+ New Repository’ 然后选择 ‘Clone from
URL’(不同版本略有不同)

操作面板介绍

向仓库中添加项目

回到SoucreTree中,看看变化。

提交本地仓库

提交本地仓库

push到Git仓库

为项目添加其他开发者












当然,我们也可以进行手动修改冲突,把有黄色感叹号的文件用文本编辑打开,然后Command+F搜索“>>>>或者 ==== 或者<<<<<”,把搜索到的那整行全部删掉,完成后Command+S进行保存并关闭,随后在SourceTree客户端中找到刚刚所修改的黄色感叹号文件,点击右键选择”标记为已解决“,然后重新提交并推送。
如有雷同,你就是抄我的!😊😊😊 --大展
作者:大展
链接:https://www.jianshu.com/p/668f16948099
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)