A code synchronization method and system
A technology for synchronizing systems and codes, which is applied in the field of communication, and can solve problems such as Git management, unusable developers, and inability to realize synchronous code management.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] An embodiment of the present invention provides a code synchronization method.
[0051] The system on which the method is based includes a first manager, an intermediate server, and a second manager. Just because an intermediate server is added between the first manager and the second manager, it is possible to achieve Code synchronization between two managers. Before performing the code synchronization operation, the intermediate server needs to generate a digital certificate, which is used for communicating with the first manager and the second manager. After the intermediate server generates the digital certificate, it configures the digital certificate on the first manager and the second manager. Afterwards, each time the intermediate server communicates with the first manager and the second manager, it will carry the digital certificate, and the certificate communication between the first manager and the second manager will be carried out through the digital certifi...
Embodiment 2
[0089] see image 3 , the embodiment of the present invention provides a code synchronization method, the execution subject of the method is the intermediate server in the code synchronization method provided in the above-mentioned embodiment 1, and the method specifically includes the following steps:
[0090] Step 201: Receive a synchronization notification sent by the first manager, the synchronization notification carrying the identifier of the first manager, the identifier of the second manager, the project identifier and the commit log.
[0091] Step 202: Obtain the project file corresponding to the project identifier according to the identifier of the second manager and the project identifier.
[0092] Step 203: Obtain the code to be synchronized from the first manager according to the identifier of the first manager.
[0093] Step 204: Add the code to be synchronized to the project file to obtain the synchronized file, and send the commit log and the synchronized file...
Embodiment 3
[0105] see Figure 4 , the embodiment of the present invention provides a code synchronization method, the execution subject of the method is the first manager in the code synchronization method provided in Embodiment 1, and the method specifically includes the following steps:
[0106] Step 301: Sending a synchronization notification to the intermediate server, the synchronization notification carrying the ID of the first manager, the ID of the second manager, the ID of the project and the commit log.
[0107] Step 302: When receiving an acquisition request from the intermediate server to obtain the code, transmit the code to be synchronized to the intermediate server, so that the intermediate server synchronizes the code to be synchronized to the second manager.
[0108] The code to be synchronized in the first manager is synchronized to the second manager in the above manner. In the embodiment of the present invention, the code to be synchronized in the second manager can ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


