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

Why Git over other VCSs?

It wouldn't be appropriate to say Git is better than SVN or any other VCS. It depends on the scenario and the requirements of the project. But nowadays, most enterprises have chosen Git as their VCS for the following reasons:

  • Distributed nature: Git has been designed as a distributed VCS, which means every user can have a complete copy of the repository data stored locally, so they can access the file history extremely fast. It also allows full functionality when the user is not connected to the network, whereas in a centralized VCS, such as SVN, only the central repository has the complete history. This means the user needs to connect with the network to access the history from the central repository.
  • Branch handling: This is one of the major differences. Git has built-in support for branches and strongly encourages developers to use them, whereas SVN can also have branches, but its practice and workflow does not have the inside command. In Git, we can have multiple branches of a repository, and in each repository, you can carry out development, test it, and then merge, and it's in a tree fashion. In SVN, everything is linear; whenever you add, delete, or modify any file, the revision will just increment by one. Even if you roll back some changes in SVN, it will be considered a new revision: 
  • Smaller space requirements: Git repositories and working directory sizes are very small in comparison with SVN.
主站蜘蛛池模板: 青阳县| 栾城县| 西畴县| 马尔康县| 新巴尔虎右旗| 马公市| 石家庄市| 噶尔县| 静安区| 珠海市| 老河口市| 渝中区| 绥宁县| 安西县| 咸宁市| 修文县| 霍州市| 青州市| 吉木乃县| 台州市| 义马市| 河东区| 涿州市| 栖霞市| 体育| 西充县| 平凉市| 崇阳县| 中江县| 墨竹工卡县| 忻州市| 汉中市| 临朐县| 平塘县| 墨竹工卡县| 涿鹿县| 抚顺市| 南开区| 偏关县| 鄂托克前旗| 新野县|