官术网_书友最值得收藏!

Features of Git

The following are some of the features of Git:

  • Captures snapshots, not entire files: Git and other VCSs had this major difference;  VCS keeps the record of revisions in the form of a file. This means it keeps a set of files for every revision. Git, however, has another way of accounting for changes. Every time you commit or save the state of your project in Git, it basically takes a snapshot of what your files look like at that very moment and stores a reference to that snapshot. If files have not been changed, Git does not store the file again; it stores a link to the previous identical file it has already stored.
  • Data integrity: Before storing any data in a Git repository, it is first checksummed, and is then referred to by that checksum. That means, if you carry out any other modification in the file, then Git will have every record of every modification. The mechanism used by Git for checksumming is known as SHA-1 hash.

    SHA-1 hash looks something like this:

    b52af1db10a8c915cfbb9c1a6c9679dc47052e34
  • States and areas: Git has three main states and views all files in three different states:

    • ModifiedThis is the modification that has been done in the file, but not yet written or committed in the database.
    • Committed: This ensures that the source code and related data are safely stored in your local database or machine
    • Staged: This ensures that the modified file is added in its current version and is ready for the next commitment. 
主站蜘蛛池模板: 普兰县| 鲜城| 陈巴尔虎旗| 霍邱县| 三都| 云龙县| 东源县| 驻马店市| 安新县| 靖边县| 高青县| 香港| 中卫市| 开封县| 聂拉木县| 综艺| 鄢陵县| 广安市| 邹平县| 房产| 姜堰市| 三台县| 黄大仙区| 乌恰县| 当阳市| 襄樊市| 莱州市| 开封县| 卢氏县| 台前县| 华安县| 大丰市| 东乡县| 平度市| 鄂托克前旗| 华容县| 陆河县| 新源县| 化德县| 城市| 和政县|