CN109783076A - Code administration method, apparatus, equipment and storage medium based on git - Google Patents

Code administration method, apparatus, equipment and storage medium based on git Download PDF

Info

Publication number
CN109783076A
CN109783076A CN201811530262.3A CN201811530262A CN109783076A CN 109783076 A CN109783076 A CN 109783076A CN 201811530262 A CN201811530262 A CN 201811530262A CN 109783076 A CN109783076 A CN 109783076A
Authority
CN
China
Prior art keywords
git
code
warehouse
service request
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811530262.3A
Other languages
Chinese (zh)
Inventor
高立志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201811530262.3A priority Critical patent/CN109783076A/en
Publication of CN109783076A publication Critical patent/CN109783076A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to technical field of data processing more particularly to a kind of code administration method, apparatus, equipment and storage mediums based on git.This method comprises: client sends the service request of cloned codes to git code management tools;Configuration file in git code management tools reading client obtains the warehouse git address, and the service request in the clone warehouse git is sent to the corresponding server in the warehouse git address;After server receives service request, git storage code is returned into git code management tools;Git storage code is cloned into the local data base of client by git code management tools.The present invention records sub- warehouse and warehouse branch information by the way of configuration file, git code management tools read the sub- warehouse address in configuration file, long-range cloned codes, the work flow of the sub- warehouse of streamlining management and branch, so that operation is more convenient, the time for managing sub- warehouse and branch is shortened.

Description

Code administration method, apparatus, equipment and storage medium based on git
Technical field
The present invention relates to technical field of data processing more particularly to a kind of code administration method, apparatus based on git, set Standby and storage medium.
Background technique
In distributed system field, developer, can be from git (distributed version control system) when doing code development Sub- warehouse cloned codes, some warehouses git can divide into the sub- warehouse git, and the warehouse git can record the sub- warehouse git Address information, administrator needs to go the sub- warehouse git to transfer code by the address in the sub- warehouse git, but base It in the submoudle mode of git, is only capable of transferring the information in the warehouse git, when including the sub- warehouse git in the warehouse git When, it just cannot achieve management.Administrator needs the code transferred to be typically distributed across the different warehouses git, based on git's The mode of submoudle is generally required according to the warehouse git catalogue, is transferred one by one, and step complexity is not easy to operate.It is based on The mode of the submoudle of git manages, and the git warehouse information for including is only capable of embodying git warehouse information, can not recognize The sub- warehouse information of git, therefore management not intuitive and that branch information can not be accurate to.
Summary of the invention
In view of this, it is necessary to for the problem that the existing warehouse git cloned codes step is complicated, it is not easy to operation, A kind of code administration method, apparatus, equipment and storage medium based on git is provided.
A kind of code administration method based on git, comprising:
Client sends the service request of cloned codes to distributed version control system git code management tools, described It include name of code in the service request of cloned codes;
After the git code management tools receive the service request of the cloned codes, read in the client Configuration file, obtains the corresponding warehouse git of name of code described in configuration file address, the warehouse Xiang Suoshu git The corresponding server in location sends the service request in the clone warehouse git, includes institute in the service request in the clone warehouse git State name of code;
It, will be corresponding with the name of code after the server receives the service request in the clone warehouse git Git storage code returns to the git code management tools;
The git storage code is cloned into the local data base of the client by the git code management tools, The clone is that the git storage code is copied to the process in database.
The git storage code is cloned into the visitor by the git code management tools in one of the embodiments, After in the local data base at family end, further includes:
Judge whether to have cloned that the warehouse git address each of is obtained from the configuration file is corresponding described Git storage code, if so, clone is completed, if it is not, then continuing to the corresponding clothes in the warehouse git address that do not clone Business device sends the service request steps in the clone warehouse git.
The git storage code is cloned into the visitor by the git code management tools in one of the embodiments, After in the local data base at family end, further includes:
Described in the git code management tools judge to be cloned into the local data base in the configuration file Whether the warehouse git contains corresponding branch information, and the branch information is the corresponding multiple subcode names in the warehouse git Claim and the sub- warehouse address git;
If it is not, then end step, if so, the git code management tools are corresponding to the sub- warehouse address git Server issues the service request in the clone sub- warehouse git, includes the son in the service request in the clone sub- warehouse git Name of code;
It, will be with the subcode title pair after the server receives the service request in the clone sub- warehouse git The sub- storage code of git answered returns to the git code management tools;
The sub- storage code of git is cloned into the local data base of the client by the git code management tools In.
The sub- storage code of git is cloned into described by the git code management tools in one of the embodiments, After in the local data base of client, further includes:
Judge whether to have cloned the sub- warehouse address each of acquisition git corresponding git sub- warehouse generation Code, if so, clone is completed, if it is not, then continuing to the corresponding server sending gram in the sub- warehouse address git that do not clone The service request steps in the grand sub- warehouse git.
The sub- storage code of git is cloned into described by the git code management tools in one of the embodiments, When in the local data base of client, the sub- storage code of git is cloned in the corresponding storage of the git storage code Under path, i.e., the sub- storage code of git in any git storage code and the corresponding branch information is deposited Storage is in same paths.
The client sends the service request of cloned codes to git code management tools in one of the embodiments, Before, comprising:
Configuration file is set in the local data base;
The service request for obtaining code address is sent to code address searching platform, the service for obtaining code address is asked It include name of code in asking, the code address searching platform is stored with multinomial name of code and the corresponding warehouse git address And branch information;
Receive the warehouse the git address and branch information that the code address searching platform returns, by the name of code, The warehouse git address and branch information are recorded in together in the configuration file.
A kind of code administration device based on git, comprising:
The service request module for sending cloned codes sends cloned codes to git code management tools for client Service request includes name of code in the service request of the cloned codes;
The service request module for sending clone warehouse, receives clone's generation for the git code management tools After the service request of code, the configuration file in the client is read, it is corresponding to obtain name of code described in the configuration file The warehouse git address, the corresponding server in the warehouse Xiang Suoshu git address sends the service request in the clone warehouse git, institute Stating includes the name of code in the service request in the clone warehouse git;
Sub- storage code module is returned, after the service request that the clone warehouse git is received for the server, Git storage code corresponding with the name of code is returned into the git code management tools;
The git storage code is cloned into institute for the git code management tools by clone storage code module It states in the local data base of client, the clone is that the git storage code is copied to the process in database.
In one of the embodiments, further include:
Judgment module, judges whether to have cloned and obtains from the configuration file for the git code management tools Each of the corresponding git storage code in the warehouse git address, if so, complete clone, if it is not, then continue to The corresponding server in the warehouse the git address that do not clone sends the service request steps in the clone warehouse git.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned code administration side based on git The step of method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute the above-mentioned code administration method based on git.
Above-mentioned code administration method, apparatus, equipment and storage medium based on git, including client is to git code administration Tool sends the service request of cloned codes, includes name of code in the service request of the cloned codes;The git dematron After science and engineering has the service request for receiving the cloned codes, the configuration file in the client is read, the configuration is obtained The corresponding warehouse git of name of code described in file address, the corresponding server in the warehouse Xiang Suoshu git address send clone The service request in the warehouse git, it is described clone the warehouse git service request in include the name of code;The server After the service request for receiving the clone warehouse git, git storage code corresponding with the name of code is returned to The git code management tools;The git storage code is cloned into the client by the git code management tools In local data base, the clone is that the git storage code is copied to the process in database.The present invention is using configuration The mode of file records sub- warehouse and warehouse branch information, and all information in all sub- warehouses are clearly recorded in configuration text in detail In part, git code management tools read the sub- warehouse address in configuration file, long-range cloned codes, not only sub- storage code side Just cloned, under branch information can also be easy to clone, the work flow of the sub- warehouse of streamlining management and branch so that make Industry is more convenient, shortens the time for managing sub- warehouse and branch.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is the flow chart of the code administration method based on git in one embodiment of the invention;
Fig. 2 is the flow chart of step S1 in one embodiment;
Fig. 3 is the flow chart of step S5 in one embodiment;
Fig. 4 is the structure chart of the code administration device based on git in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the code administration method based on git in one embodiment of the invention, as shown in Figure 1, a kind of Code administration method based on git, comprising the following steps:
Step S1, sends the service request of cloned codes: client is to distributed version control system git dematron science and engineering Tool sends the service request of cloned codes, includes name of code in the service request of cloned codes.
Before the client of this step sends the service request of cloned codes to git code management tools, referring to Fig. 2, comprising:
Step S101 is arranged configuration file: configuration file being arranged in the local database.
Client creates a configuration file in its local data base, for storing git storage code title, correspondence Git storage code address and branch information, wherein branch information is the sub- warehouse multiple git that divides into the warehouse git Subcode title, the sub- warehouse address corresponding git.
Content in configuration file can be as shown in table 1 below:
Name of code Sub- warehouse address Subcode title Sub- warehouse address
Table 1
Specifically, configuration file can also use the file of .json format, Json (JavaScript Object It Notation) is a kind of data interchange format lighter and handier than xml, simpler, Json is JavaScript native format, JSON Rule are as follows: object is unordered " ' name/value ' a to " set.With " { " (left bracket) start, " } ", (right side includes one object Number) terminate.Each " title " heel one ": " (colon);It uses ", " (comma) to separate between " ' name/value ' to " and is used as one Kind data transmission format.When Json format transmission, no need to send the header messages containing certain types of content, cause Json number It is simpler and more practical according to the parameter transmitting of format, it is more suitable for client and code address searching platform data in this step and passes It passs, git code management tools is also facilitated to obtain data.
Step S102 sends the service request for obtaining code address: sending to code address searching platform with obtaining code The service request of location, obtaining in the service request of code address includes name of code, and code address searching platform is stored with multinomial Name of code and the corresponding warehouse git address and branch information.
Code address searching platform provides access interface to client, and client sends to code address searching platform and obtains After the service request of code address, code address searching platform obtains name of code from service request, by name of code with deposit The data of storage are matched, and after obtaining the name of code corresponding warehouse git address and branch information, return to client.
When client sends service request to code address searching platform, it can once request to send multinomial name of code, Code address searching platform is successively read name of code, after being matched, successively returns to client.
Step S103 records sub- warehouse address and branch information: receiving the warehouse git that code address searching platform returns Name of code, the warehouse git address and branch information are recorded in configuration file by address and branch information together.
As shown in table 2 below, client receives the warehouse git address and the branch information of code address searching platform return Respectively containing there are three types of situations: the warehouse the git address without containing branch information, corresponding store code title and the warehouse git Location;The warehouse git address containing a branch information, corresponding store code title, the warehouse git address, subcode title With the sub- warehouse address git;The warehouse git address containing multinomial branch information, corresponding store code title, the warehouse git Address, multinomial subcode title and the sub- warehouse address multinomial git.
Table 2
This step is by way of sending request to code address searching platform, by all storehouses git of client needs Library address and the sub- warehouse address git are recorded in configuration file, in order to which subsequent git code management tools extract address letter It is used when breath, avoids occurring miss codes phenomenon when Code Clones.
Step S2, send the service request in clone warehouse: the service that git code management tools receive cloned codes is asked After asking, configuration file in reading client obtains the name of code corresponding warehouse git address in configuration file, to git The corresponding server in warehouse address sends the service request in the clone warehouse git, includes in the service request in the clone warehouse git Name of code.
Git code management tools are a kind of distributed version control systems, can use Item version in the prior art Management tool.Git code management tools, can be using calling third party library system copies in the configuration file of reading client Order sys read configuration file, realize disposably by configuration file name of code and the warehouse git address be read out Purpose.
Since the corresponding git storage code of name of code may not be to be stored in the same server, but distinguish On each different server, therefore git code management tools go to visit according to the warehouse the git address provided in configuration file Ask the server of specific direction, this server is stored with the corresponding git storage code of name of code.
Step S3 returns to sub- storage code:, will be with code after server receives the service request in the clone warehouse git The corresponding git storage code of title returns to git code management tools.
Server in this step is the code storage library trustship station based on git, for disposing the warehouse git, and is responded The service request that git code management tools issue.Server after receiving service request, by name of code and the data of storage into Row matching, after obtaining the corresponding git storage code of name of code, returns to git code management tools.
Step S4, clone storage code: git storage code is cloned into the sheet of client by git code management tools In ground database, clone as git storage code to be copied to the process in database.
Git code management tools can execute git dematron using the library subprocess of python when being cloned The submodule order of science and engineering tool is realized.
The present embodiment is in such a way that client adds configuration file, by all name of code and the warehouse git Location is maintained in configuration file, and configuration file is as configuration core of the invention, as long as git code management tools successively obtain The warehouse git address in configuration file, accesses corresponding server, targeted to the access of server, can be simply square The corresponding git storage code of name of code being cloned into client just.
In one embodiment, when the git storage code is cloned into the client by git code management tools After in local data base, further includes:
Judge whether to have cloned each warehouse the git address corresponding warehouse the git generation obtained from configuration file Code, if so, clone is completed, if it is not, then continuing to send clone git to the corresponding server in the warehouse git address that do not clone The service request steps in sub- warehouse.
Due to carrying out client or git code management tools in service request, it is understood that there may be request failure, or access The case where failure, but the failure of the single warehouse git address, the Code Clones in other warehouses git are had no effect on, in order to true It protects the corresponding git storage code of name of code all in configuration file and is cloned into local data base, avoid management project Go wrong when in use, the present embodiment adds deterministic process, if it exists due to failure after, fail clone phenomenon, when code gram After the completion of grand, service request and clone individually also are carried out to the warehouse git of failure.
In one embodiment, git storage code is cloned into the local data base of client by git code management tools In after, further include step S5 referring to Fig. 3:
Step S501 judges whether containing branch information: git code management tools judge to be cloned into this in configuration file Whether the warehouse git in ground database contains corresponding branch information, and branch information is the corresponding multiple filial generations in the warehouse git Code title and the sub- warehouse address git.
The branch information in the warehouse git, as shown in table 2, it is understood that there may be do not have, only one or sub containing multinomial git The case where warehouse address.Git code management tools are after completing cloning process to all warehouses git, to each storehouse git Library judges whether containing branch information.
Step S502 issues the service request in the sub- warehouse of clone: if it is not, then end step, if so, git dematron Science and engineering has the service request that the clone sub- warehouse git is issued to the corresponding server in the sub- warehouse address git, clone's git It include subcode title in the service request in warehouse.
Identical with the service request for sending the clone warehouse git, git code management tools are to the sub- warehouse address git Corresponding server, which sends service request, can successively carry out service request when warehouse address sub- there are multinomial git, It can once request to send multiple subcode titles.
Step S503 returns to sub- storage code:, will after server receives the service request in the clone sub- warehouse git The sub- storage code of git corresponding with subcode title returns to git code management tools.
The corresponding server in the sub- warehouse address git is after receiving service request, by the number of subcode title and storage According to being matched, after obtaining the sub- storage code of corresponding git of subcode title, git code management tools are returned to.
Step S504, the sub- storage code of clone: the sub- storage code of git is cloned into client by git code management tools In the local data base at end.
When the sub- storage code of git is cloned into the local data base of client by git code management tools, by git Sub- storage code is cloned under the corresponding store path of git storage code, i.e., any git storage code and corresponding point The sub- storage code of git in branch information is stored in same paths.The corresponding git storage code in the same warehouse git, The sub- storage code of git is maintained in same path, can be convenient inquiry, modifications or substitutions code.
After the sub- storage code of git is cloned into the local data base of the client by git code management tools, also wrap It includes: judging whether the corresponding sub- storage code of git in the sub- warehouse address each git for having cloned acquisition, if so, completing Clone, if it is not, then continuing the clothes for issuing the clone sub- warehouse git to the corresponding server in the sub- warehouse address git that do not clone Business request step.
Similar with to the corresponding service request in the warehouse git, this step is when carrying out service request, it is also possible to exist and ask Failure is asked, or the case where access failure, but the failure of the single sub- warehouse address git, have no effect on the sub- warehouse other git Code Clones, in order to ensure the sub- storage code of corresponding git of subcode title all in configuration file is cloned into local Database avoids management project from going wrong when in use, and the present embodiment adds deterministic process, if it exists due to failure after, not Phenomenon can be cloned, after the completion of the sub- storage code clone of git, service request individually also is carried out to the sub- warehouse git of failure And clone.
The present embodiment is after completing clone to git storage code, also to the molecular information progress gram in the warehouse git Grand, git code management tools use above-mentioned orderly clonal fashion, and clone is convenient and simple, and obtains each git by configuration file Sub- warehouse address, can be accurate to the management in the sub- warehouse each git.
The present invention is based on the code administration methods of git, and sub- warehouse and sub- warehouse branch are recorded by way of configuration file All information of information, all sub- warehouses are clearly recorded in configuration file in detail.Matched by the reading of git code management tools The sub- warehouse address in file is set, long-range clone's git storage code is carried out to specific server.To the warehouse git generation After the completion of code is all cloned, then the clone of molecular information is carried out to each warehouse git cloned, clone uses orderly tool There is the mode of certain level, the management in the sub- warehouse each git can be accurate to.The sub- warehouse of streamlining management of the present invention and the work of branch Industry process shortens the time for managing sub- warehouse and branch so that operation is more convenient.
In one embodiment it is proposed that a kind of code administration device based on git, as shown in figure 4, including such as lower die Block:
The service request module for sending cloned codes sends cloned codes to git code management tools for client Service request includes name of code in the service request of the cloned codes;
The service request module for sending clone warehouse, receives clone's generation for the git code management tools After the service request of code, the configuration file in the client is read, it is corresponding to obtain name of code described in the configuration file The warehouse git address, the corresponding server in the warehouse Xiang Suoshu git address sends the service request in the clone warehouse git, institute Stating includes the name of code in the service request in the clone warehouse git;
Sub- storage code module is returned, after the service request that the clone warehouse git is received for the server, Git storage code corresponding with the name of code is returned into the git code management tools;
The git storage code is cloned into institute for the git code management tools by clone storage code module It states in the local data base of client, the clone is that the git storage code is copied to the process in database.
In one embodiment, the code administration device based on git, further includes:
Judgment module, judges whether to have cloned and obtains from the configuration file for the git code management tools Each of the corresponding git storage code in the warehouse git address, if so, complete clone, if it is not, then continue to The corresponding server in the warehouse the git address that do not clone sends the service request steps in the clone warehouse git.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction Step in the code administration method based on git of existing the various embodiments described above.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors, so that one or more processors execute the generation based on git of the various embodiments described above Step in code management method.Wherein, storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of code administration method based on git characterized by comprising
Client sends the service request of cloned codes, the clone to distributed version control system git code management tools It include name of code in the service request of code;
After the git code management tools receive the service request of the cloned codes, the configuration in the client is read File obtains the corresponding warehouse git of name of code described in configuration file address, the warehouse Xiang Suoshu git address pair The server answered sends the service request in the clone warehouse git, includes the generation in the service request in the clone warehouse git Code title;
It, will git corresponding with the name of code after the server receives the service request in the clone warehouse git Storage code returns to the git code management tools;
The git storage code is cloned into the local data base of the client by the git code management tools, described Clone is that the git storage code is copied to the process in database.
2. the code administration method according to claim 1 based on git, which is characterized in that the git code management tools After the git storage code is cloned into the local data base of the client, further includes:
Judge whether to have cloned and each of obtains the corresponding git in the warehouse git address from the configuration file Sub- storage code, if so, clone is completed, if it is not, then continuing to the corresponding server in the warehouse git address that do not clone Send the service request steps in the clone warehouse git.
3. the code administration method according to claim 1 based on git, which is characterized in that the git code management tools After the git storage code is cloned into the local data base of the client, further includes:
The git code management tools judge git being cloned into the local data base in the configuration file Whether warehouse contains corresponding branch information, the branch information be the corresponding multiple subcode titles in the warehouse git and The sub- warehouse address git;
If it is not, then end step, if so, the git code management tools are to the corresponding service in the sub- warehouse address git Device issues the service request in the clone sub- warehouse git, includes the subcode in the service request in the clone sub- warehouse git Title;
It, will be corresponding with the subcode title after the server receives the service request in the clone sub- warehouse git The sub- storage code of git returns to the git code management tools;
The sub- storage code of git is cloned into the local data base of the client by the git code management tools.
4. the code administration method according to claim 3 based on git, which is characterized in that the git code management tools After the sub- storage code of git is cloned into the local data base of the client, further includes:
Judge whether to have cloned the corresponding sub- storage code of git in the sub- warehouse address each of acquisition git, if It is then to complete to clone, if it is not, then continuing to issue clone git to the corresponding server in the sub- warehouse address git that do not clone The service request steps in sub- warehouse.
5. the code administration method according to claim 3 based on git, which is characterized in that the git code management tools When the sub- storage code of git is cloned into the local data base of the client, by the sub- storage code gram of git It is grand under the corresponding store path of the git storage code, i.e., any git storage code and corresponding described point The sub- storage code of git in branch information is stored in same paths.
6. the code administration method according to claim 1 based on git, which is characterized in that the client is to git code Before management tool sends the service request of cloned codes, comprising:
Configuration file is set in the local data base;
To the service request of code address searching platform transmission acquisition code address, in the service request of the acquisition code address Including name of code, the code address searching platform is stored with multinomial name of code and the corresponding warehouse git address and divides Branch information;
The warehouse the git address and branch information that the code address searching platform returns are received, by the name of code, described The warehouse git address and branch information are recorded in together in the configuration file.
7. a kind of code administration device based on git characterized by comprising
The service request module for sending cloned codes sends the service of cloned codes for client to git code management tools It requests, includes name of code in the service request of the cloned codes;
The service request module for sending clone warehouse, receives the cloned codes for the git code management tools After service request, the configuration file in the client is read, obtains the corresponding git of name of code described in the configuration file Sub- warehouse address, the service request in the corresponding server transmission clone warehouse git in the warehouse Xiang Suoshu git address, described gram It include the name of code in the service request in the grand warehouse git;
Sub- storage code module is returned, it, will be with after the service request that the clone warehouse git is received for the server The corresponding git storage code of the name of code returns to the git code management tools;
The git storage code is cloned into the visitor for the git code management tools by clone storage code module In the local data base at family end, the clone is that the git storage code is copied to the process in database.
8. the code administration device according to claim 7 based on git, which is characterized in that further include:
Judgment module, judge whether to have cloned for the git code management tools obtained from the configuration file it is every The corresponding git storage code in a warehouse git address, if so, clone is completed, if it is not, then continuing Xiang Weike The corresponding server in the grand warehouse git address sends the service request steps in the clone warehouse git.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 6 right It is required that the step of code administration method based on git.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more Device execute when so that one or more processors execute as described in any one of claims 1 to 6 claim based on git The step of code administration method.
CN201811530262.3A 2018-12-14 2018-12-14 Code administration method, apparatus, equipment and storage medium based on git Pending CN109783076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811530262.3A CN109783076A (en) 2018-12-14 2018-12-14 Code administration method, apparatus, equipment and storage medium based on git

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811530262.3A CN109783076A (en) 2018-12-14 2018-12-14 Code administration method, apparatus, equipment and storage medium based on git

Publications (1)

Publication Number Publication Date
CN109783076A true CN109783076A (en) 2019-05-21

Family

ID=66496226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811530262.3A Pending CN109783076A (en) 2018-12-14 2018-12-14 Code administration method, apparatus, equipment and storage medium based on git

Country Status (1)

Country Link
CN (1) CN109783076A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334326A (en) * 2019-09-02 2019-10-15 宁波均胜普瑞智能车联有限公司 A kind of method and system for identifying recipe file and being converted into XML file
CN111399856A (en) * 2020-03-11 2020-07-10 山东汇贸电子口岸有限公司 File configuration editing method and system in service deployment
CN112114864A (en) * 2020-08-17 2020-12-22 贝壳技术有限公司 Cooapods code pulling optimization method and system
CN112579097A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN112966065A (en) * 2021-05-10 2021-06-15 炬星科技(深圳)有限公司 Navigation map data management method, navigation map data management device, and storage medium
CN113010149A (en) * 2019-12-20 2021-06-22 北京金山云网络技术有限公司 Application loading method and device, user terminal and server
CN113094083A (en) * 2021-04-07 2021-07-09 中国工商银行股份有限公司 Version construction method, version construction device, electronic equipment and readable storage medium
CN113268956A (en) * 2021-05-25 2021-08-17 浙江工业大学 Method for identifying YAML file and converting YAML file into XML file
CN113595962A (en) * 2020-04-30 2021-11-02 华为技术有限公司 Safety control method and device and safety control equipment
CN113656035A (en) * 2020-05-12 2021-11-16 深圳兆日科技股份有限公司 Service operation method, device, terminal and storage medium based on git
CN114489739A (en) * 2022-04-02 2022-05-13 统信软件技术有限公司 Software package updating method and device and computing equipment
CN117453629A (en) * 2023-12-22 2024-01-26 厦门无链之链科技有限公司 Personal mobile blockchain data archive management system based on U shield

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
CN106302667A (en) * 2016-08-04 2017-01-04 上海携程商务有限公司 Code management system and method
US20170374151A1 (en) * 2016-06-28 2017-12-28 Solano Labs, Inc. Systems and methods for efficient distribution of stored data objects
WO2018077169A1 (en) * 2016-10-31 2018-05-03 中兴通讯股份有限公司 Image repository authorization, access and management method, server, and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
US20170374151A1 (en) * 2016-06-28 2017-12-28 Solano Labs, Inc. Systems and methods for efficient distribution of stored data objects
CN106302667A (en) * 2016-08-04 2017-01-04 上海携程商务有限公司 Code management system and method
WO2018077169A1 (en) * 2016-10-31 2018-05-03 中兴通讯股份有限公司 Image repository authorization, access and management method, server, and client

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李宇琨;彭鑫;赵文耘;: "基于众包问答信息的API使用代码搜索", 计算机应用与软件, no. 07 *
苏洋;: "基于Web Services的移动式仓储管理系统设计", 中国西部科技, no. 30 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334326A (en) * 2019-09-02 2019-10-15 宁波均胜普瑞智能车联有限公司 A kind of method and system for identifying recipe file and being converted into XML file
CN110334326B (en) * 2019-09-02 2019-11-22 宁波均胜普瑞智能车联有限公司 A kind of method and system for identifying recipe file and being converted into XML file
CN113010149B (en) * 2019-12-20 2024-04-05 北京金山云网络技术有限公司 Application loading method and device, user terminal and server
CN113010149A (en) * 2019-12-20 2021-06-22 北京金山云网络技术有限公司 Application loading method and device, user terminal and server
CN111399856A (en) * 2020-03-11 2020-07-10 山东汇贸电子口岸有限公司 File configuration editing method and system in service deployment
CN113595962A (en) * 2020-04-30 2021-11-02 华为技术有限公司 Safety control method and device and safety control equipment
CN113595962B (en) * 2020-04-30 2022-11-18 华为技术有限公司 Safety control method and device and safety control equipment
CN113656035A (en) * 2020-05-12 2021-11-16 深圳兆日科技股份有限公司 Service operation method, device, terminal and storage medium based on git
CN113656035B (en) * 2020-05-12 2024-02-27 深圳兆日科技股份有限公司 Service operation method, device, terminal and storage medium based on git
CN112114864A (en) * 2020-08-17 2020-12-22 贝壳技术有限公司 Cooapods code pulling optimization method and system
CN112579097A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN112579097B (en) * 2020-12-21 2023-08-08 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN113094083A (en) * 2021-04-07 2021-07-09 中国工商银行股份有限公司 Version construction method, version construction device, electronic equipment and readable storage medium
CN113094083B (en) * 2021-04-07 2024-02-06 中国工商银行股份有限公司 Version construction method, version construction device, electronic equipment and readable storage medium
CN112966065A (en) * 2021-05-10 2021-06-15 炬星科技(深圳)有限公司 Navigation map data management method, navigation map data management device, and storage medium
CN113268956A (en) * 2021-05-25 2021-08-17 浙江工业大学 Method for identifying YAML file and converting YAML file into XML file
CN114489739B (en) * 2022-04-02 2022-08-12 统信软件技术有限公司 Software package updating method and device and computing equipment
CN114489739A (en) * 2022-04-02 2022-05-13 统信软件技术有限公司 Software package updating method and device and computing equipment
CN117453629A (en) * 2023-12-22 2024-01-26 厦门无链之链科技有限公司 Personal mobile blockchain data archive management system based on U shield
CN117453629B (en) * 2023-12-22 2024-03-08 厦门无链之链科技有限公司 Personal mobile blockchain data archive management system based on U shield

Similar Documents

Publication Publication Date Title
CN109783076A (en) Code administration method, apparatus, equipment and storage medium based on git
US10877930B2 (en) Blockchain-based cross-chain data access method and apparatus
US7523130B1 (en) Storing and retrieving objects on a computer network in a distributed database
CN109145205A (en) A kind of across chain data manipulation method and device based on block chain
US7805439B2 (en) Method and apparatus for selecting data records from versioned data
US20080244184A1 (en) In-memory caching of shared customizable multi-tenant data
CN102999562B (en) Routing inquiry result
US20160210597A1 (en) System for efficient processing of transaction requests related to an account in a database
WO2010045331A2 (en) Method and apparatus for gathering and organizing information pertaining to an entity
CN103353901B (en) The orderly management method of table data based on Hadoop distributed file system and system
JP6975153B2 (en) Data storage service processing method and equipment
CN105224532A (en) Data processing method and device
CN110188307A (en) A kind of multi-tenant data partition method, server and system
CN105869057A (en) Comment storage device, comment reading method and apparatus, and comment writing method and apparatus
US11868328B2 (en) Multi-record index structure for key-value stores
CN106547646A (en) A kind of data backup and restoration methods, data backup and recovery device
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN117235285B (en) Method and device for fusing knowledge graph data
US8818855B2 (en) System and method for aggregating information over a wide area network
US11550792B2 (en) Systems and methods for joining datasets
CN104573132B (en) Song lookup method and device
US20230362015A1 (en) Notification control method, verification method, and information processing apparatus
CN112559483A (en) HDFS-based data management method and device, electronic equipment and medium
CN107911443A (en) A kind of session information processing method, device, server and readable storage medium storing program for executing
KR20150136338A (en) Method of creating multi tenancy history, server performing the same and storage media storing the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination