Home  >  Article  >  Operation and Maintenance  >  Introduction to the advantages and disadvantages of git server

Introduction to the advantages and disadvantages of git server

PHP中文网
PHP中文网Original
2017-06-21 13:33:552987browse
1. The definition of GIT - distributed version control system
2. The functional characteristics of Git:
1. From the general From a developer's perspective, git has the following functions:
#[1], clone the complete Git repository (including code and version information) from the server to On a single machine.
[2]. Create branches and modify the code on your own machine according to different development purposes.
[3] Submit the code on the branch you created on a single machine.
[4], merge branches on a single machine.
[5]. Fetch the latest version of the code on the server, and then merge it with your main branch.
[6], generate a patch (patch), and send the patch to the main developer.
[7] Based on the feedback from the main developer, if the main developer finds that there is a conflict between two general developers (a conflict that can be resolved through cooperation between them), they will Ask them to resolve the conflict before one of them commits it. If the lead developer can resolve it himself, or there are no conflicts, pass.
[8]. Generally, the method for resolving conflicts between developers is that developers can use the pull command to resolve conflicts. After resolving the conflicts, they can submit patches to the main developer.
2. From the perspective of the main developer (assuming that the main developer does not need to develop code), git has the following functions:
1. Check the email or check the submission status of general developers through other methods.
2. Apply patches and resolve conflicts (you can resolve them yourself, or you can ask developers to resolve them before resubmitting them. If it is an open source project, you also need to decide which patches are useful and which ones use).
3. Submit the results to the public server and then notify all developers.
3. Advantages and Disadvantages:
1. Advantages
## [1] , suitable for distributed development, emphasizing individuals.
[2], The pressure on the public server and the amount of data will not be too large.
[3], fast and flexible.
[4], Conflicts can be easily resolved between any two developers.
[5], Work offline.
2. Disadvantages:
[1], little information (at least very few Chinese information).
[2], the learning cycle is relatively long.
                                                                                                                                                                                                                                                        [3], do not conform to conventional thinking.
[4], the code is poorly confidential, once the developer puts down the entire Cucklon, he can fully disclose all code and version information.
Summary: GIT server is a free distributed version control tool based on Linux system, but it does not support Chinese and requires command line operation. The graphical support is very poor and cannot Suitable for promotion and use

The above is the detailed content of Introduction to the advantages and disadvantages of git server. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn