Guard type cross-network git code synchronization method, system and device and storage medium
The guardian-class cross-network Git code synchronization method addresses the challenge of efficient and secure code synchronization across operator environments by employing browser VPN login and timed refreshes, enhancing synchronization efficiency and reducing manual effort.
Patent Information
- Application Number
- CN202411926142.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-09
AI Technical Summary
In operator environments, efficient, continuous, and secure code synchronization between development, testing, and production environments through VPN is challenging.
A guardian-class cross-network Git code synchronization method involving browser VPN login, timed refresh, and scheduled Git code synchronization, with optional client connections and script-based execution, ensuring reliable and automated code synchronization.
Reduces manual intervention and enhances synchronization efficiency by implementing a guardian-class system for cross-network Git code synchronization.
Smart Images

Figure CN119960787A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of windows development technology, and in particular to a guard-type cross-network git code synchronization method, system, device and storage medium. Background Art
[0002] Currently, access to the operator environment is authorized through VPN, from the development environment to the operator's test environment / production environment. For the continuous, efficient, stable and secure operation of code synchronization, this paper studies and solves the code synchronization problem in this context. Summary of the invention
[0003] In view of the shortcomings existing in the above problems, the present invention provides a guard-type cross-network GIT code synchronization method, system, device and storage medium.
[0004] To achieve the above object, the present invention provides a guard-type cross-network git code synchronization method, comprising:
[0005] Log in to the VPN through the browser and start the timed refresh program;
[0006] At the same time, the git code synchronization program is scheduled regularly.
[0007] Preferably, the VPN connection includes a browser login connection and a client connection; the client connection includes a connection with a reconnection mechanism and a connection without a reconnection mechanism.
[0008] Preferably, a timed refresh program is started, and the feedback information includes the process start time and the process refresh frequency.
[0009] Preferably, the Vbs script regularly schedules the git code synchronization program and batch processes the Vbs script encapsulated exe program.
[0010] The present invention also provides a guard-type cross-network git code synchronization system, comprising:
[0011] Login module, used for browser login to VPN and start timed refresh program;
[0012] The simultaneous module is used to schedule the git code synchronization program at the same time.
[0013] The present invention also provides a device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the above method.
[0014] The present invention also provides a storage medium storing a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device executes the above method.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] The present invention regularly schedules and synchronizes git codes, thereby reducing manual input and increasing execution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flowchart of the cross-network git code synchronization method of the guard class of the present invention;
[0018] Figure 2 This is the interface display diagram of the operation menu;
[0019] Figure 3 This is the interface display diagram for selecting number 1 in the operation menu;
[0020] Figure 4 This is the interface display diagram of the operation menu selection number 2;
[0021] Figure 5 This is the interface display diagram of the operation menu selection number 3;
[0022] Figure 6 This is the interface display diagram of the operation menu selection number 4;
[0023] Figure 7 This is the interface display diagram for selecting number 5 in the operation menu;
[0024] Figure 8 This is the interface display diagram of the operation menu selection number 6;
[0025] Fig. 9 It is to deploy the program display diagram according to the script running path;
[0026] Fig.10 It is to adjust the code synchronization batch path display diagram in codeSyn.vbs. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] Reference Figure 1The present invention provides a guard-type cross-network git code synchronization method, comprising:
[0029] Log in to the VPN through the browser and start the timed refresh program;
[0030] At the same time, the git code synchronization program is scheduled regularly.
[0031] In this embodiment, VPN connection guarantee: VPN connection mainly includes browser login connection and client connection; client connection is subdivided into connection with reconnection mechanism and connection without reconnection mechanism. Here, the focus is on solving the browser login connection, and the validity of the connection is guaranteed by timed refresh. Vbs script, a program for scheduled synchronization of git code. Batch processing script encapsulates exe program, interface, interactive scheduling script execution, operation monitoring, single process stop or all stop.
[0032] Specifically, double-click GitSyn.exe to start the operation interface. The operation menu is digitally coded to facilitate the selection of operations; the operation menu is displayed in independent colors for clearer viewing, such as Figure 2 shown.
[0033] For browser login VPN, start the timed refresh program
[0034] Select No. 1 to start the browser refresh process. The feedback information includes the process start time and process refresh frequency (the frequency can be adjusted according to actual conditions). Figure 3 shown.
[0035] Start the git code synchronization program
[0036] Select operation number 2 to start the git code synchronization schedule process (the default synchronization frequency is 10 minutes / time, if you need to adjust it, you can process it in codeSyn.vbs), such as Figure 4 shown.
[0037] Process information query, for the started process information, select operation 3 to query brief information, such as Figure 5 shown.
[0038] Query process details, operation 4, you can query process details, such as Figure 6 shown.
[0039] Single process stop: To stop a single process as required, first select operation 5, then enter the PID of the process to be stopped; if you want to exit the single process stop, enter 0. Figure 7 shown.
[0040] All processes are stopped and the operation number 6 is output, that is, all started processes are stopped, such as Figure 8 shown.
[0041] To exit the interactive page, enter operation number 9.
[0042] In this embodiment, firstly, according to the script running path, the program is deployed, such as Fig. 9 shown.
[0043] Adjust the code synchronization batch processing path in codeSyn.vbs to ensure that there is no overwriting problem when synchronizing codes of multiple operators, such as Fig.10 shown.
[0044] The present invention also provides a guard-type cross-network git code synchronization system, comprising:
[0045] Login module, used for browser login to VPN and start timed refresh program;
[0046] The simultaneous module is used to schedule the git code synchronization program at the same time.
[0047] The present invention also provides a device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the above method.
[0048] The present invention also provides a storage medium storing a computer program executable by an electronic device. When the program runs on the electronic device, the electronic device executes the above method.
[0049] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A guard-type cross-network git code synchronization method, characterized in that: include: Log in to the VPN through the browser and start the timed refresh program; At the same time, the git code synchronization program is scheduled regularly.
2. The guard-type cross-network git code synchronization method according to claim 1 is characterized in that: VPN connections include browser login connections and client connections; the client connections include connections with a reconnection mechanism and connections without a reconnection mechanism.
3. The guard-type cross-network git code synchronization method according to claim 2 is characterized in that: Start the timed refresh program, and the feedback information includes the process start time and process refresh frequency.
4. The guard-type cross-network git code synchronization method according to claim 3 is characterized in that: The Vbs script regularly schedules the git code synchronization program and batch processes the Vbs script encapsulated exe program.
5. A guard-type cross-network git code synchronization system, characterized in that: include: Login module, used for browser login to VPN and start timed refresh program; The simultaneous module is used to schedule the git code synchronization program simultaneously.
6. The guard-type cross-network git code synchronization system according to claim 5 is characterized in that: VPN connections include browser login connections and client connections; the client connections include connections with a reconnection mechanism and connections without a reconnection mechanism.
7. The guard-type cross-network git code synchronization system according to claim 6 is characterized in that: Start the timed refresh program, and the feedback information includes the process start time and process refresh frequency.
8. The guard-type cross-network git code synchronization system according to claim 7 is characterized in that: The Vbs script regularly schedules the git code synchronization program and batch processes the Vbs script encapsulated exe program.
9. A device, characterized in that: The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the method according to any one of claims 1 to 4.
10. A storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device executes the method according to any one of claims 1 to 4.
Citation Information
Cited By
Remote synchronization system and method and block transmission subsystem
CN119052260A
Remote synchronization system, method and chunked transfer subsystem
CN119052260B