A code synchronization method, device and system
A technology of synchronizing device and synchronizing system, applied in transmission system, version control, electrical components, etc., can solve problems affecting efficiency, convenience, long time, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] This embodiment provides a code synchronization device, which obtains user identification information and code data to be synchronized by setting an information acquisition module, then transmits the acquired information data to a version number generation module to generate a version number, and finally passes the data packet The generation and sending module packs the version number and code data into a synchronous code data package, saves the code data package and sends it to the code synchronization target device for storage; it solves the problem that software developers need to backup and save the code data in the prior art It needs to be named, and the storage space of the storage server also needs to be considered, which causes technical problems that affect the efficiency and convenience of software developers' work.
[0039] Specifically, refer to figure 2 , in this embodiment, the code synchronization device includes: an information data acquisition module, ...
Embodiment 2
[0041] Such as image 3 As shown, the embodiment of the present invention provides a code synchronization system, which includes a computer, the code synchronization device as described in Embodiment 1, and a first GIT server. In this embodiment, the computer is respectively connected to the first GIT server and the second GIT server, and the first GIT server is connected to the second GIT server.
[0042] Specifically, when the computer performs a code synchronization operation, the computer sends the user identification information (namely the user name) and the code data to be synchronized to the second GIT server, and the second GIT server performs a code synchronization as in the embodiment according to the received information data. The work of the device generates a synchronous code data packet, and a code warehouse is provided in the second GIT server, and the generated synchronous code data packet is saved in the code warehouse and then sent to the synchronous code wa...
Embodiment 3
[0045] refer to figure 1 , this embodiment provides a code synchronization method, which includes:
[0046] S1, acquiring user identification information and code data to be synchronized;
[0047] S2, generating a version number according to the user identification information and code data;
[0048] S3, packing the version number and code data into a synchronization code data packet, and sending it to the code synchronization target device for storage.
[0049] specific:
[0050]The code data generation version number specifically includes:
[0051] After the code data is obtained, a version number is automatically generated according to the user identification information, the time information of obtaining the code data, and the content information of the code data.
[0052] Obtain user identification information and code data to be synchronized as follows:
[0053] The name of the user is obtained as the user identification information, and the code data to be synchron...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


