
一、从版本控制器说起
- 工程设计领域中使用版本控制管理工程蓝图的设计过程。在 IT 开发过程中也可以使用版本控制思想管理代码的版本迭代
1、 版本控制工具应该具备的功能
(1)协同管理:多人并行不悖的修改服务器端的同一个文件
(2)数据备份:不仅保存目录和文件的当前状态,还能够保存每一个提交过的历史状态
(3)版本管理:在保存每一个版本的文件信息的时候要做到不保存重复数据,以节约存储空间,提高运行效率。这方面 SVN 采用的是增量式管理的方式,而 Git 采取了文件系统快照的方式
(4)权限控制:对团队中参与开发的人员进行权限控制,对团队外开发者贡献的代码进行审核——Git 独有
(5)历史记录:查看修改人、修改时间、修改内容、日志信息,将本地文件恢复到某一个历史状态
(6)分支管理:允许开发团队在工作过程中多条生产线同时推进任务,进一步提高效率。
2、版本控制器的分类
-
集中式版本控制器:CVS、SVN、VSS等
集中式版本控制器
-
分布式版本控制器:Git、Mercurial、Bazaar、Darcs……
分布式版本控制器
二、git简介
- git官网:https://git-scm.com/
- 官网是这么介绍git的:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git是一个免费的开源分布式版本控制系统,旨在快速,高效地处理从小型到大型项目的所有事务。
Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
Git易于学习,轻巧,具有闪电般快速的性能。它超越了Subversion,CVS,Perforce和ClearCase等SCM工具,具有廉价本地分支,便捷的临时区域和多个工作流程等功能。
1、git诞生历史

2、特点和优势
(1)大部分操作在本地完成,不需要联网
(2)完整性、高效性保证
(3)尽可能添加数据而不是删除或修改数据
(4)分支操作非常快捷流畅
(5)与 Linux 命令全面兼容
三、git安装










网友评论