A. What is Git? Git is currently the world's most advanced distributed version control system
two. Basic KnowledgeCentral SCM (software Configuration Management)
- Server: Single Database
- Client: working directory, status
No-center SCM
- Anyone can be a server
- Working directory is also a warehouse
- No network connection required for operation
three. What are the similarities and differences between SVN and Git?
Same as:
Record all changes to the file. This is for a large number of changes, but finally feel that the original version of the code is good, can have records back to the past, instead of using Copy of the old code saved as a file, and then some time from a large number of files to find the history you need, version control to help us do the history of storage, It is easy to query and roll back to a previous version.
Different:There are a number of differences between Git and other version control systems (such as CVS), and git itself cares about changes in the integrity of the file, but most CV s or Subversion systems care about the differences in file content. So git is more like a filesystem that gets data directly on this computer without having to connect to the host side to get the data.
Git
is a version control tool for Linux kernel development. Unlike a centralized version control tool like CVS, Subversion (SVN), it uses a distributed repository approach that does not require server-side software to operate version control, making it extremely convenient to publish and communicate source code. Git is fast, which is naturally important for large projects such as the Linux kernel. The best of Git is its combined tracking (merge tracing) capability.
SVN is a centralized or central version of the control system, the repository is centrally placed in the central server, and work, with their own computers, so the first to get from the central server where the latest version, and then work, after the completion of the need to do their own work to push to the central server. Centralized version control system must be networked to work, if the LAN can also, the bandwidth is large enough, fast enough, if under the Internet, if the speed is slow, I wonder. Git is a distributed version control system, then it does not have a central server, everyone's computer is a full version of the library, so that the work of the time will not need to network, because the version is on their own computer. Since everyone's computer has a full repository, how do people collaborate? For example, they changed the file a on the computer, the other people also on the computer changed the file a, at this time, you two only need to put their changes to each other, you can see each other's changes.
Reference: Https://zh.wikipedia.org/zh-cn/Git Http://rogerdudler.github.io/git-guide/index.zh . html
git getting Started----git and SVN differences