📅  最后修改于: 2020-12-13 13:42:13             🧑  作者: Mango
Apache Subversion或SVN是最流行的集中式版本控制系统之一。现在,SVN的受欢迎程度正在下降,但是其中仍然存储着数百万个项目。它可以继续由开源社区积极维护。在SVN中,您可以签出存储库的单个版本。它将数据存储在中央服务器中。 SVN的缺点是,它的整个历史记录都存储在本地存储库中,这限制了您的工作。您只能执行提交,差异,日志,分支,合并,文件注释等。
同时, Git是一种流行的分布式版本控制系统,这意味着您可以克隆您的存储库。因此,您可以获得该项目整个历史的完整副本。这意味着您可以访问所有提交。
Git比SVN具有更多的优势。对于那些不总是连接到主存储库的开发人员来说,这要好得多。而且,它比SVN快得多。
为了更好地理解Git和Subversion之间的区别。让我们看一下以下要点。
Git | SVN |
---|---|
It’s a distributed version control system. | It’s a Centralized version control system |
Git is an SCM (source code management). | SVN is revision control. |
Git has a cloned repository. | SVN does not have a cloned repository. |
The Git branches are familiar to work. The Git system helps in merging the files quickly and also assist in finding the unmerged ones. | The SVN branches are a folder which exists in the repository. Some special commands are required For merging the branches. |
Git does not have a Global revision number. | SVN has a Global revision number. |
Git has cryptographically hashed contents that protect the contents from repository corruption taking place due to network issues or disk failures. | SVN does not have any cryptographically hashed contents. |
Git stored content as metadata. | SVN stores content as files. |
Git has more content protection than SVN. | SVN’s content is less secure than Git. |
Linus Torvalds developed git for Linux kernel. | CollabNet, Inc developed SVN. |
Git is distributed under GNU (General public license). | SVN is distributed under the open-source license. |