[Git] Intro

Version Control System (VCS)

  • Centralized Version Control System (CVCS)
  1. Ex: CVS, Subversion, Perforce
  2. We may encounter the errors/bugs in the center.
  3. When errors occur, we only last the Individual Snapshots on local devices.
  • Distributed Version Control System (DVCS)
  1. Ex: Git, Bazaar
  2. Client not only copy codes, but the complete image of repo and history.

Git History

  • Use Distributed Version Control System: BitKeeper (2002-2005)
  • Advantages of Git:
  1. Quick
  2. Simple
  3. Non-linear Distribution (Allow lots of branches)
  4. Maintain the large-scale project: Linux Kernel
What's Git
  • Git is similar to other VCS like Subversion, but treat data in a different way.
  • Most VCSs store data with Document-List based (CVS, Subversion, Perforce, Bazaar, it's also called Delta-based VCS.
  • Git treat documents as series of snapshots:
  1. At each staged, it would create a snapshot based on current files, and store the index of snapshot.
  2. If files aren't changed, Git would create a link, pointing to last-stored files.
  3. A.K.A Git Flow

Local Machine

  1. Most instructions are accessed with local machine and resources.
  2. Thus, we have the complete history of the repo.

Advantages of Git: Integrity

  1. Git would create/generate the checksum before storing data.
  2. Standard of hash: SHA-1, SHA-256.
  3. Git store data with index based on the checksum of docs contents, not the name of docs.

The status of Git

  • Modified
  • Staged
  • Committed


<<:  [Java学习笔记] 使用Builder Pattern 使物件初始化有预设参数

>>:  CMoney工程师战斗营weekly4

DAY 21 新增查询与删除团购讯息

管理讯息的功能有 新增团购讯息 删除团购讯息 查询团购讯息 手动新增团购者 手动删除团购者 新增团购...

Day02 - 单一元件档你好 Single Component File 初见面

今天一样跟着网路上的大神 重新认识 Vue.js | Kuro Hsu 3-2 Vue SFC 单一...

【2022 Mac必学】五 个方法救回 Word 当机未保存的文档

软件当机每次来得都是猝不及防,Word 也不例外。辛辛苦苦在 Word 编辑的文档因突然当机丢失了,...

DAY2 - 找寻生活中的问题

好了,开始做side project了,但是要做什麽呢? 相信这是大多数人的问题 做 side pr...

Day 15 - 神经网络(D)NN 到 卷积神经网络CNN (2)

另一个full connection 例子, 数字辨识:https://www.youtube.co...