CN113656035A - Service operation method, device, terminal and storage medium based on git - Google Patents

Service operation method, device, terminal and storage medium based on git Download PDF

Info

Publication number
CN113656035A
CN113656035A CN202010399841.XA CN202010399841A CN113656035A CN 113656035 A CN113656035 A CN 113656035A CN 202010399841 A CN202010399841 A CN 202010399841A CN 113656035 A CN113656035 A CN 113656035A
Authority
CN
China
Prior art keywords
service
target
git
compiling
configuration file
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.)
Granted
Application number
CN202010399841.XA
Other languages
Chinese (zh)
Other versions
CN113656035B (en
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.)
Shenzhen Sinosun Technology Co ltd
Original Assignee
Shenzhen Sinosun Technology Co ltd
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 Shenzhen Sinosun Technology Co ltd filed Critical Shenzhen Sinosun Technology Co ltd
Priority to CN202010399841.XA priority Critical patent/CN113656035B/en
Publication of CN113656035A publication Critical patent/CN113656035A/en
Application granted granted Critical
Publication of CN113656035B publication Critical patent/CN113656035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a git-based service operation method, a git-based service operation device, a terminal and a readable storage medium, wherein the git-based service operation method is used for acquiring a current git-based target service to be operated; acquiring operation demand information of the target service; and operating the target service in batches based on the operation demand information. The method and the device can improve the service operation efficiency based on git.

Description

Service operation method, device, terminal and storage medium based on git
Technical Field
The present application relates to the technical field of computer service operation management, and in particular, to a git-based service operation method, apparatus, terminal, and computer-readable storage medium.
Background
At present, though git is a better code management tool, there are still some inconvenient places facing some businesses, such as services can only be cloned one by one, compiling must be sequentially executed under each service compiling directory, services can only be uploaded one by one, and the like, that is, the same operation needs to be repeatedly executed for services based on git, which results in tedious operation process and long time consumption. It follows that current git-based services operate inefficiently.
Disclosure of Invention
The present application mainly aims to provide a git-based service operation method, apparatus, terminal and computer storage medium, and aims to solve the technical problem of low git-based service operation efficiency in the prior art.
In order to achieve the above object, an embodiment of the present application provides a git-based service operation method, where the steps of the git-based service operation method include:
acquiring a target service to be operated based on git at present;
acquiring operation demand information of the target service;
and operating the target service in batches based on the operation demand information.
Optionally, the step of operating the target service in batch based on the operation requirement information includes:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
and cloning the target clone service in batch based on the target clone service and the first configuration file.
Optionally, the step of bulk cloning the target clone service based on the target clone service and the first configuration file includes:
executing a preset clone sub-script;
acquiring a first folder generated by the preset clone sub-script under the same-level directory of the first configuration file;
and acquiring the preset clone sub-script, downloading the target clone service in the first configuration file to the downloading result under the first folder, and cloning the target clone service in batches.
Optionally, the step of operating the target service in batch based on the operation requirement information further includes:
if the operation demand information is compiled in batch, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batch based on the target compiling service and the second configuration file.
Optionally, the step of compiling the target compilation service in bulk based on the target compilation service and the second configuration file includes:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the peer directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batch.
Optionally, the step of operating the target service in batch based on the operation requirement information further includes:
if the operation demand information is uploaded in batch, acquiring target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Optionally, the step of uploading the target upload service in bulk based on the target upload service and the third configuration file includes:
executing a preset uploading sub-script;
acquiring the version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on a target uploading service in the third configuration file;
and acquiring an uploading result of the preset uploading sub-script uploading the update service package to a preset storage position based on the version number so as to upload the target uploading service in batches.
The present application further provides a git-based service operation apparatus, which includes:
the first acquisition module is used for acquiring the current git-based target service to be operated;
the second acquisition module is used for acquiring the operation demand information of the target service;
and the operation module is used for operating the target service in batches based on the operation demand information.
Optionally, the operation module includes:
the first obtaining unit is used for obtaining a target clone service if the operation demand information is batch clone;
a second obtaining unit, configured to obtain a first configuration file of the target clone service;
and the batch cloning unit is used for batch cloning the target cloning service based on the target cloning service and the first configuration file.
Optionally, the batch cloning unit comprises:
the first execution subunit is used for executing the preset cloning sub-script;
the first obtaining subunit is configured to obtain a first folder generated by the preset cloning sub-script in the peer directory of the first configuration file;
and the second obtaining subunit is configured to obtain a downloading result obtained by downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script, so as to clone the target cloning service in batch.
Optionally, the operation module further comprises:
a third obtaining unit, configured to obtain a target compilation service if the operation requirement information is batch compilation;
a fourth obtaining unit, configured to obtain a second configuration file of the target compilation service;
and the batch compiling unit is used for compiling the target compiling service in batch based on the target compiling service and the second configuration file.
Optionally, the batch compiling unit includes:
the second execution subunit is used for executing the preset compiling sub-script;
a third obtaining subunit, configured to obtain a compilation service package generated by compiling the target compilation service in the second configuration file by using the preset compilation sub-script;
a fourth obtaining subunit, configured to obtain a second folder, generated by the preset compiling sub-script in the peer directory of the second configuration file;
and the fifth acquiring subunit is configured to acquire a copy result of copying the compiling service package to the second folder by using the preset compiling sub-script, so as to compile the target compiling service in batch.
Optionally, the operation module further comprises:
a fifth obtaining unit, configured to obtain a target upload service if the operation demand information is a batch upload;
a sixth obtaining unit that obtains a third configuration file of the target upload service;
and the batch uploading unit is used for uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Optionally, the batch uploading unit includes:
the third execution subunit is used for executing the preset uploading sub-script;
a sixth obtaining subunit, configured to obtain a version number of the third configuration file;
a seventh obtaining subunit, configured to obtain an update service package generated by the preset upload sub-script based on a target upload service in the third configuration file;
and the eighth acquiring subunit is configured to acquire an uploading result of the preset uploading sub-script, based on the version number, uploading the update service package to a preset storage location, so as to upload the target uploading service in batches.
The present application further provides a terminal, the terminal including: a memory, a processor and a git-based service operation program stored on the memory and executable on the processor, the git-based service operation program, when executed by the processor, implementing the steps of the git-based service operation method as described above.
The present application further provides a computer storage medium having stored thereon a git-based service operation program, which when executed by a processor, implements the steps of the git-based service operation method as described above.
The application discloses a git-based service operation method, a git-based service operation device, a terminal and a computer-readable storage medium, wherein the git-based service operation method is used for acquiring a current git-based target service to be operated; acquiring operation demand information of the target service; and operating the target service in batches based on the operation demand information. According to the method and the device, the target service can be operated in batch by executing the script according to the operation requirement information of the target service to be operated, so that the service operation efficiency based on git is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of an optional terminal according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a first embodiment of a git-based service operation method of the present application;
FIG. 3 is a schematic flowchart of a second embodiment of the git-based service operation method of the present application;
FIG. 4 is a schematic flowchart of a third embodiment of the git-based service operation method of the present application;
FIG. 5 is a schematic flowchart of a fourth embodiment of a git-based service operation method according to the present application;
FIG. 6 is a schematic flow chart of a fifth embodiment of the git-based service operation method of the present application;
FIG. 7 is a flowchart illustrating a sixth embodiment of a git-based service operation method according to the present application;
FIG. 8 is a schematic flow chart diagram illustrating a seventh embodiment of a git-based service operation method according to the present application;
fig. 9 is a functional block diagram of the git-based service operation device according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
The terminal in the embodiment of the application can be a fixed terminal, such as an internet of things intelligent device, and comprises an intelligent air conditioner, an intelligent lamp, an intelligent power supply, an intelligent router and other intelligent homes; the system can also be a mobile terminal, and comprises a smart phone, a wearable networking AR/VR device, a smart sound box, an automatic driving automobile and other networking equipment.
As shown in fig. 1, the architecture design of the git-based service operation terminal includes nodes and servers, and the device structure thereof may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the git-based service operation terminal may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The user interface may include a Display screen (Display), touch screen, camera (including AR/VR devices), etc., and the optional user interface may also include a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface, bluetooth interface, probe interface, 3G/4G/5G networking communication interface, etc.).
Those skilled in the art will appreciate that the git-based service operation terminal structure shown in fig. 1 does not constitute a limitation of the git-based service operation terminal and may include more or less components than those shown, or combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and an early wake-up program. The operating system is a program that manages and controls the git-based services to operate the hardware and software resources of the terminal, supporting the operation of the git-based services operating program as well as other software and/or programs. The network communication module is used to implement communication between the components inside the memory 1005 and with other hardware and software in the git-based service operation terminal.
In the git-based service operation terminal shown in fig. 1, the processor 1001 is configured to execute the git-based service operation program stored in the memory 1005, and performs the following operations:
acquiring a target service to be operated based on git at present;
acquiring operation demand information of the target service;
and operating the target service in batches based on the operation demand information.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
and cloning the target clone service in batch based on the target clone service and the first configuration file.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
executing a preset clone sub-script;
acquiring a first folder generated by the preset clone sub-script under the same-level directory of the first configuration file;
and acquiring the preset clone sub-script, downloading the target clone service in the first configuration file to the downloading result under the first folder, and cloning the target clone service in batches.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
if the operation demand information is compiled in batch, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batch based on the target compiling service and the second configuration file.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the peer directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batch.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
if the operation demand information is uploaded in batch, acquiring target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and also perform the following operations:
executing a preset uploading sub-script;
acquiring the version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on a target uploading service in the third configuration file;
and acquiring an uploading result of the preset uploading sub-script uploading the update service package to a preset storage position based on the version number so as to upload the target uploading service in batches.
Based on the hardware structure, various embodiments of the git-based service operation method of the present application are proposed.
Referring to fig. 2, a first embodiment of the git-based service operation method of the present application provides a git-based service operation method, which includes:
step S10, acquiring the current git-based target service to be operated;
in the solution disclosed in the present application, git is an open-source distributed version control system, which is used to handle any small or large project swiftly and efficiently. During development, because gits have rich functionality, for example, cloning a complete git repository (including code and version information) from a server onto a stand-alone machine; creating branches and modifying codes on own machine according to different development purposes; submitting codes on the branches created by the single machine; merging branches on a single machine, and the like, so git is a better code management tool and is favored by developers. A service operating system refers to a program, routine, or process that performs specified system functions in order to support other programs. A target service refers to a program, routine, or process that a user intends to operate, i.e., to operate.
However, although git is a better code management tool, there are still some inconvenient places facing some businesses, such as services can only be cloned one by one, compiling must be sequentially executed under each service compiling directory, services can only be uploaded one by one, and the like, that is, the same operation needs to be repeatedly executed for services based on git, which results in tedious operation process and long time consumption. Therefore, the git-based service operation efficiency is low at present, and therefore, the git-based service operation method, the git-based service operation device, the git-based service operation terminal and the computer-readable storage medium are used for improving the git-based service operation efficiency.
Step S20, obtaining operation demand information of the target service;
in the technical scheme disclosed by the application, the operation requirement information of the target service refers to the intention of a user to operate the target service, and comprises batch cloning, batch compiling and batch uploading of the target service.
And step S30, operating the target service in batch based on the operation requirement information.
According to the technical scheme, after the operation demand information of the target service is acquired, the target service is operated in batch based on the operation demand information, so that repeated operation is simplified, and the operation efficiency of the target service is improved.
In the embodiment, the git-based service operation method obtains the current git-based target service to be operated; acquiring operation demand information of the target service; and operating the target service in batches based on the operation demand information. According to the method and the device, the target service can be operated in batch according to the operation demand information of the target service to be operated, and therefore the service operation efficiency based on git is improved.
Further, in the second embodiment of the git-based service operation method of the present application, referring to fig. 3, step S30 includes:
step S31, if the operation requirement information is batch clone, obtaining target clone service;
in the technical scheme disclosed by the application, the operation requirement information is batch cloning, which refers to batch cloning target service. The target clone service refers to a service that needs to be cloned, and the number of the target clone services is more than one.
Step S32, acquiring a first configuration file of the target clone service;
in the technical solution disclosed in the present application, the first configuration file refers to a file that is configured in advance by a user and includes information related to a target clone service, and from the first configuration file, the service operating program based on git may use the read service as the target clone service. That is, the user selects the relevant identifier of the service to be cloned into the first configuration file, so that the service with the relevant identifier in the first configuration file is used as the target cloned service.
Step S33, based on the target cloning service and the first configuration file, batch cloning the target cloning service.
In the technical scheme disclosed by the application, after the target clone service and the first configuration file are obtained, the git-based service operation program can clone the target clone service in batches according to the target clone service and the first configuration file.
In the embodiment, firstly, a user selects a relevant identifier of a service to be cloned into a first configuration file as a target cloning service, then a service operation program based on git obtains the target cloning service and the first configuration file, and then a preset cloning sub-script clones the target cloning service in the first configuration file in batch according to the target cloning service and the first configuration file, so that the problem that the target cloning service is cloned one by one through manual and repeated operation is avoided, and the cloning efficiency of the target cloning service based on git is improved.
Further, in the third embodiment of the git-based service operation method of the present application, referring to fig. 4, step S33 includes:
step S331, executing a preset clone sub-script;
in the technical scheme disclosed by the application, the preset cloning sub-script refers to a script included in a git-based service operation program, and the function realized by the preset cloning sub-script is batch cloning of the target cloning service, so that the cloning efficiency of the target cloning service is improved.
Step S332, acquiring a first folder generated by the preset clone sub-script in the peer directory of the first configuration file;
in the technical solution disclosed in the present application, after the preset clone sub-script is executed, the preset clone sub-script generates a folder under the same-level directory of the first configuration file, which is named as a first folder.
Step S333, obtaining the preset cloning sub-script, and downloading the target cloning service in the first configuration file to the downloading result in the first folder, so as to clone the target cloning service in batch.
In the technical scheme disclosed by the application, after the preset cloning sub-script generates the first folder in the peer directory of the first configuration file, the preset cloning sub-script downloads the target cloning service in the first configuration file to the first folder, so that the batch cloning of the target cloning service is realized.
In this embodiment, the git-based service operation program first executes the preset cloning sub-script, the preset cloning sub-script generates the first folder in the first configuration file peer directory, the preset cloning sub-script downloads the target cloning service in the first configuration file into the first folder, and finally, the git-based service operation program obtains the downloading result, thereby achieving the batch cloning of the target cloning service. The preset cloning sub-script has the main functions of configuring an excel file and then executing a batch _ clone, wherein the script generates an ssp folder in a peer directory, and simultaneously clones related services configured in the excel file to the folder to basically realize the function of cloning a plurality of services by one key, thereby realizing batch cloning of target cloning services, avoiding repeated and tedious cloning of the target cloning services one by one, and improving the cloning efficiency of the target cloning services based on git.
Further, in the fourth embodiment of the git-based service operation method of the present application, referring to fig. 5, step S30 further includes:
step S34, if the operation demand information is batch compiling, acquiring target compiling service;
in the technical solution disclosed in the present application, compiling refers to performing a series of processing on a source file of a high-level language to obtain an executable file of a binary code. The operation requirement information is batch compilation, which means a batch compilation target service. The target compilation service refers to a service that needs to be compiled, and the number of target compilation services is more than one.
Step S35, acquiring a second configuration file of the target compiling service;
in the technical solution disclosed in the present application, the second configuration file refers to a file that is configured in advance by a user and includes information related to a target compilation service, and from the second configuration file, the service operating program based on git may use the read service as the target compilation service. That is, the user selects the relevant identifier of the service to be compiled into the second configuration file, so that the service with the relevant identifier in the second configuration file is used as the target compiling service.
Step S36, compiling the target compilation service in batch based on the target compilation service and the second configuration file.
In the technical scheme disclosed by the application, after the target compiling service and the second configuration file are obtained, the git-based service operation program can compile the target compiling service in batch according to the target compiling service and the second configuration file.
In the embodiment, firstly, a user selects a relevant identifier of a service to be compiled into a second configuration file to serve as a target compiling service, then, a service operation program based on git acquires the target compiling service and the second configuration file, and then, according to the target compiling service and the second configuration file, the target compiling service in the second configuration file is compiled in batch by a preset compiling sub-script, so that the problem that the target compiling service is repeatedly and tediously compiled one by one manually is avoided, and the compiling efficiency of the target compiling service based on git is improved.
Further, in the fifth embodiment of the git-based service operation method of the present application, referring to fig. 6, step S36 includes:
step S361, executing a preset compiling sub-script;
in the technical scheme disclosed by the application, the preset compiling sub-script refers to a script included in a git-based service operation program, and the function realized by the preset compiling sub-script is to compile the target compiling service in batch, so that the compiling efficiency of the target compiling service is improved.
Step S362, acquiring a compilation service package generated by compiling the target compilation service in the second configuration file by the preset compilation sub-script;
in the technical solution disclosed in the present application, compiling a service package refers to packaging a package generated by packaging a target compiling service, that is, the compiling service includes the target compiling service.
Step S363, acquiring a second folder generated by the preset compiling sub-script in the peer directory of the second configuration file;
in the technical solution disclosed in the present application, after the preset compiling sub-script is executed, the preset compiling sub-script generates a folder under the same-level directory of the second configuration file, which is named as a second folder.
Step S364, obtaining the preset compiling sub-script and copying the compiling service package to the copying result in the second folder, so as to compile the target compiling service in batch.
According to the technical scheme, after a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script is obtained, a second folder generated by the preset compiling sub-script in the same-level directory of the second configuration file is obtained, and finally the preset compiling sub-script is obtained to copy the compiling service package to a copying result in the second folder, so that the target compiling service is compiled in batches.
In this embodiment, the git-based service operation program first executes a preset compiling sub-script, where the preset compiling sub-script compiles a target compiling service in the second configuration file to generate a compiling service package, and generates a second folder in a peer directory of the second configuration file; and then, the preset compiling sub-script can copy the compiling service package to a second folder, and finally, a copying result is obtained based on a git service operation program, so that the target compiling service is compiled in batches. The preset compiling sub-script has the function of packing all configured services in the same-level directory, and meanwhile, copying the generated tar packet to the tar folder of the directory, so that the functions of one-key packing and tar packet management are realized.
Further, in the sixth embodiment of the git-based service operation method of the present application, referring to fig. 7, step S30 further includes:
step S37, if the operation requirement information is batch uploading, acquiring target uploading service;
in the technical scheme disclosed by the application, the operation requirement information refers to batch uploading of target services. The target upload service refers to a service that needs to be uploaded, and the number of the target upload services is more than one.
Step S38, acquiring a third configuration file of the target upload service;
in the technical solution disclosed in the present application, the third configuration file refers to a file that is configured in advance by a user and includes information related to a target upload service, and from the third configuration file, the read service may be used as the target upload service by a git-based service operation program. That is, the user selects the relevant identifier of the service to be uploaded into the third configuration file, so that the service with the relevant identifier in the third configuration file is used as the target uploading service.
It should be noted that, if the target compiling service is compiled and then used as the target uploading service, the third configuration file is the same as the second configuration file, and therefore, only the service in the second configuration file needs to be acquired as the target uploading service, that is, the third configuration file is acquired.
Step S39, based on the target upload service and the third configuration file, uploading the target upload service in batch.
In the technical scheme disclosed by the application, after the target upload service and the third configuration file are obtained, the git-based service operation program can upload the target upload service in batches according to the target upload service and the third configuration file.
In this embodiment, a user selects a relevant identifier of a service to be uploaded into a third configuration file as a target uploading service, then obtains the target uploading service and the third configuration file based on a git service operation program, and uploads the target uploading service in the third configuration file in batch by a preset uploading sub-script according to the target uploading service and the third configuration file, so that the problem that the target uploading service is repeatedly and tediously uploaded one by one is avoided, and the uploading efficiency of the git-based target uploading service is improved.
Further, in a seventh embodiment of the git-based service operation method of the present application, referring to fig. 8, step S39 includes:
step S391, executing a preset uploading sub-script;
in the technical scheme disclosed by the application, the preset uploading sub-script refers to a script included in a git-based service operation program, and the function realized by the preset uploading sub-script is to upload the target uploading service in batches, so that the uploading efficiency of the target uploading service is improved.
Step S392, acquiring the version number of the third configuration file;
according to the technical scheme, after the preset uploading sub-script is executed, the preset uploading sub-script can generate the version number of the third configuration file, so that the target uploading service can be uploaded according to the version number of the third configuration file conveniently, and version disorder is avoided.
Step S393, obtaining an update service package generated by the preset upload sub-script based on the target upload service in the third configuration file;
in the technical solution disclosed in the present application, the update service package refers to a package generated by packaging a target upload service, that is, the update service includes the target upload service.
Step S394, obtaining the uploading result of the preset uploading sub-script, based on the version number, uploading the update service package to a preset storage location, so as to upload the target uploading service in batches.
According to the technical scheme, after the preset uploading sub-script is executed, the preset uploading sub-script generates the version number of the third configuration file and uploads the update service package to the uploading result of the preset storage position according to the version number of the third configuration file, and therefore target uploading service is uploaded in batches.
In this embodiment, the git-based service operation program first executes a preset upload sub-script, where the preset upload sub-script generates a version number of a third configuration file, and an update service package generated based on a target upload service in the third configuration file; and uploading the update service package to a preset storage position based on the version number by the preset uploading sub-script, and finally acquiring an uploading result based on a git service operation program so as to realize batch uploading of the target uploading service. The function realized by the preset uploading sub-script is that the service jar packages are updated in batches and uploaded to a maven warehouse, so that the target uploading service is uploaded in batches, repeated and tedious target uploading service one by one is avoided, and the uploading efficiency of the target uploading service based on git is improved.
In the technical scheme disclosed by the application, the preset cloning sub-script is executed, so that the target cloning service can be cloned in batches; carrying out batch clone command on the target clone service, and then executing a preset compiling sub-script to compile the target compiling service in batch; after the target compiling service is compiled in batch, the preset uploading sub-script is executed, and the target uploading service can be uploaded in batch, so that the service can be cloned, compiled and uploaded in batch by the script, manual repeated cloning, compiling or uploading is avoided, and the operating efficiency of the git-based service is improved.
In addition, referring to fig. 9, an embodiment of the present invention further provides a git-based service operation apparatus, where the git-based service operation apparatus includes:
the first acquisition module is used for acquiring the current git-based target service to be operated;
the second acquisition module is used for acquiring the operation demand information of the target service;
and the operation module is used for operating the target service in batches based on the operation demand information.
The present application further provides a terminal, the terminal including: the system comprises a memory, a processor and a git-based service operation program stored on the memory and capable of running on the processor, wherein the git-based service operation program realizes the steps of the git-based service operation method when being executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a git-based service operation program, which when executed by a processor, implements the steps of the git-based service operation method described above.
In the embodiments of the git-based service operation method, the apparatus, the terminal and the readable storage medium of the present application, all technical features of the embodiments of the git-based service operation method are included, and the expanding and explaining contents of the description are substantially the same as those of the embodiments of the git-based service operation method, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A git-based service operation method, characterized in that the git-based service operation method comprises the steps of:
acquiring a target service to be operated based on git at present;
acquiring operation demand information of the target service;
and operating the target service in batches based on the operation demand information.
2. The git-based service operation method as claimed in claim 1, wherein the step of bulk-operating the target service based on the operation requirement information comprises:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
and cloning the target clone service in batch based on the target clone service and the first configuration file.
3. The git-based service operation method of claim 2, wherein the step of bulk cloning the target clone service based on the target clone service and the first configuration file comprises:
executing a preset clone sub-script;
acquiring a first folder generated by the preset clone sub-script under the same-level directory of the first configuration file;
and acquiring the preset clone sub-script, downloading the target clone service in the first configuration file to the downloading result under the first folder, and cloning the target clone service in batches.
4. The git-based service operation method as claimed in claim 1, wherein the step of bulk-operating the target service based on the operation requirement information further comprises:
if the operation demand information is compiled in batch, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batch based on the target compiling service and the second configuration file.
5. The git-based service operation method of claim 4, wherein the step of bulk compiling the target compilation service based on the target compilation service and the second configuration file comprises:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the peer directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batch.
6. The git-based service operation method as claimed in claim 1, wherein the step of bulk-operating the target service based on the operation requirement information further comprises:
if the operation demand information is uploaded in batch, acquiring target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
7. The git-based service operation method of claim 6, wherein the step of bulk uploading the target upload service based on the target upload service and the third profile comprises:
executing a preset uploading sub-script;
acquiring the version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on a target uploading service in the third configuration file;
and acquiring an uploading result of the preset uploading sub-script uploading the update service package to a preset storage position based on the version number so as to upload the target uploading service in batches.
8. A git-based service operation apparatus, characterized in that the git-based service operation apparatus comprises:
the first acquisition module is used for acquiring the current git-based target service to be operated;
the second acquisition module is used for acquiring the operation demand information of the target service;
and the operation module is used for operating the target service in batches based on the operation demand information.
9. A terminal, characterized in that the terminal comprises: memory, a processor and a git-based service operation program stored on the memory and executable on the processor, the git-based service operation program, when executed by the processor, implementing the steps of the git-based service operation method as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a git-based service operation program, which when executed by a processor implements the steps of the git-based service operation method as recited in any one of claims 1 to 7.
CN202010399841.XA 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git Active CN113656035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010399841.XA CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010399841.XA CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Publications (2)

Publication Number Publication Date
CN113656035A true CN113656035A (en) 2021-11-16
CN113656035B CN113656035B (en) 2024-02-27

Family

ID=78477028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010399841.XA Active CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Country Status (1)

Country Link
CN (1) CN113656035B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460252A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Configuration file processing method, device and computer equipment based on git
CN109783076A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Code administration method, apparatus, equipment and storage medium based on git

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460252A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Configuration file processing method, device and computer equipment based on git
CN109783076A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Code administration method, apparatus, equipment and storage medium based on git

Also Published As

Publication number Publication date
CN113656035B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
CN104063239B (en) Application program update method and server, the client of mobile terminal
CN101861567A (en) Methods, apparatuses and computer program product for automatic download of software dependencies on installation
CN108376078A (en) Upgrade method, device and the household appliance of equipment
JP2004537895A (en) System and method for peer-to-peer handset communication
CN107729014B (en) Page jump method and structure based on Android
CN111147337A (en) Network distribution method of third-party equipment, terminal equipment and computer readable storage medium
CN108345467B (en) Version tree file updating method and device
CN111045683A (en) Applet code compiling method, device, equipment and medium
CN109725912B (en) Application program configuration method, device, terminal, server and readable storage medium
CN107463405B (en) Application program updating method and device
CN104539476A (en) Data package obtaining method and device
CN112631622A (en) Application installation method and device, server and computer readable medium
WO2016041499A1 (en) Application downloading method and mobile terminal
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
CN111857881A (en) Repo-based manifest warehouse loading method and device and storage medium
CN111596951A (en) Method and device for configuring engineering file
CN106162341A (en) Interface processing method, Apparatus and system
CN102117219A (en) Method for generating clients, system and terminal equipment
CN113656035A (en) Service operation method, device, terminal and storage medium based on git
CN113839992A (en) Equipment control method and device
CN109714642B (en) Method for reusing Linux application in intelligent system, intelligent television and storage medium
CN106775879B (en) VR application installation-free method and system based on android system client
CN104933018A (en) File processing method and apparatus
WO2023020071A1 (en) Upgrade package acquisition method and smart device

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
GR01 Patent grant
GR01 Patent grant