3.GitHub understanding

First, understand version control

1. What is version control,

2. Why do you need a version control

  (1) log file of all historical changes

  (2) Check the revision of and responsible persons

  (2) Error Recovery

  (3) shared data, collaborative development

3.vcs

   (1) Local version control system

    Create a file recorded on a single machine, there is no way to play a role in development cooperation, can not play a role in a collaborative development environment

    (2) centralized version control system

      Pros: lets developers on not systems work together, it has a centralized single document management server, save versions of all the files that other users can be connected to this server through the client, obtain the latest file status and submit own update,

      Disadvantages: single point of failure problem server, if the server goes down, all clients can not fault submission occurs, and therefore no way to work together, and this server disk failure, while the backup is not enough time, then, you may lose data. Worst-case scenario might lose the entire history of the project changes.

     (3) distributed version control system

     Advantages: The client is not just to extract a snapshot of the latest version of the project, but the entire source project repository mirror down, which means that every time the project is to extract a complete backup of the project, so that even if any one server fails, afterwards can use any of the client's image to restore the entire project, so its security is very good, the distributed version control, most of the operations we need only locally, do not need networking, this is because in the beginning when we extract the files already stored in the local history of all the updates, the next operation in a timely manner without a network, you can still submit updated quickly locally, and finally coding is complete, you can connect to the network, a one-time code that will be submitted to remote repository server, thus improving the efficiency of the submission. In addition it also provides code branch, and code merger operation function, and therefore more suitable for distributed version control more than collaboration, and multi-purpose parallel multi-module development.

 

3.Git

    An open source distributed version control system

   When using git will create a local client, through the client execute commands connect to remote servers, get the code warehouse loss, so submit and update, in the actual development process, we can build ourselves a remote server.

 

4. code hosting and collaborative development platform

(1)GitHub

      https://github.com/

  (2) Code Cloud Gitee

       Open Source China (www.oschina.net) Community Team launched

       https://gitee.com/

 

Second, understand the platform GitHub

 

Guess you like

Origin www.cnblogs.com/holly8/p/12158315.html