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

  • AWS Automation Cookbook
  • Nikit Swaraj
  • 259字
  • 2021-07-02 23:00:37

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. 
主站蜘蛛池模板: 庆阳市| 海安县| 讷河市| 孟村| 常宁市| 西林县| 内江市| 安仁县| 永济市| 琼结县| 阜宁县| 琼结县| 林西县| 东明县| 涟水县| 济阳县| 延津县| 洛阳市| 色达县| 凤冈县| 甘泉县| 棋牌| 亚东县| 杨浦区| 靖江市| 海城市| 扎兰屯市| 彰化市| 叙永县| 阿克陶县| 岢岚县| 美姑县| 双鸭山市| 和政县| 徐水县| 阳曲县| 嘉荫县| 巨野县| 南宫市| 修文县| 汕头市|