CN110502273A - A kind of method, terminal and computer readable storage medium constructing local project - Google Patents

A kind of method, terminal and computer readable storage medium constructing local project Download PDF

Info

Publication number
CN110502273A
CN110502273A CN201910793838.3A CN201910793838A CN110502273A CN 110502273 A CN110502273 A CN 110502273A CN 201910793838 A CN201910793838 A CN 201910793838A CN 110502273 A CN110502273 A CN 110502273A
Authority
CN
China
Prior art keywords
local project
data
open source
github
branch
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
CN201910793838.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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN201910793838.3A priority Critical patent/CN110502273A/en
Publication of CN110502273A publication Critical patent/CN110502273A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a kind of method, terminal and computer readable storage mediums for constructing local project, belong to local project building field, and how in time, selectively technical problems to be solved are to synchronize open source projects data to local project.Method is associated with local project and GitHub open source projects, and GitHub open source projects data are synchronized to local project, and the GitHub open source projects data selectivity that will synchronize to local project is incorporated into local project.Terminal includes processor, input equipment, output equipment and memory, and processor is configured for calling the described program instruction execution above method.Computer-readable recording medium storage has computer program, and computer program includes program instruction, and program instruction executes the above method.

Description

A kind of method, terminal and computer readable storage medium constructing local project
Technical field
The present invention relates to local projects to construct field, specifically a kind of method, terminal and meter for constructing local project Calculation machine readable storage medium storing program for executing.
Background technique
It has been mainstream development mode currently based on GitHub open source projects building local project, in existing development model In, mostly it is to copy open source projects particular version to local, is then based on this secondary development as new local project.It is this For model the problem is that open source projects are usually relatively more active, new features and repair data are constantly added to open source projects In, local project can not accomplish synchronized update, in view of the above-mentioned problems, usually way is whole using the new version progress of open source projects Body upgrading, this results in great security risks.
Based on above-mentioned, open source projects data how in time, are selectively synchronized to local project as urgently to be solved Problem.
Summary of the invention
Technical assignment of the invention is against the above deficiency, to provide a kind of method, terminal and calculating for constructing local project Machine readable storage medium storing program for executing, to solve the problems, such as how in time, selectively to synchronize open source projects data to local project.
In a first aspect, the present invention provides a kind of method for constructing local project, association local project and GitHub open source item GitHub open source projects data are synchronized to local project by mesh, and will synchronize to the GitHub open source projects data of local project Selectivity is incorporated into local project, and described method includes following steps:
Synchronizing device, official data source branch and master data source branch are configured in local project;
GitHub open source projects are synchronized to official data source branch automatically by synchronizing device, and are passed through Official data source branch stores GitHub open source projects data;
Make then to do customization demand as local project exploitation branch by master data source branch;
When GitHub open source projects add new feature or repair data, official data source branch is merged into Master data source branch.
Preferably, GitHub open source projects are synchronized to automatically by official data source branch by synchronizing device, and GitHub open source projects data are stored by official data source branch, are included the following steps:
The permission that local project is configured by Git, with postponing local project with pulling data and GitHub need not be logged in Permission;
The running frequency for configuring synchronizing device, is performed the following operations based on running frequency, by synchronizing device:
By GitHub open source projects data pull to local project;
GitHub open source projects data are synchronized to offical data source branch, and it is all to retain GitHub open source projects Change record.
Preferably, including the following steps: to operate by the remoteadd of Git by the permission that Git configures local project Add the warehouse long-range open source projects Git.
Preferably, the fetch by Git is operated GitHub open source projects data pull to local project.
Preferably, GitHub open source projects data are synchronized to offical data source point by the merge operation by Git Branch.
Preferably, being operated when GitHub open source projects add new feature or repair data by the merge of Git Official data source branch data is merged into master data source branch.
Preferably, synchronizing device is auto-synchronizor automatic device.
Second aspect, the present invention provide a kind of terminal, including processor, input equipment, output equipment and memory, processing Device, input equipment, output equipment and memory are connected with each other, and memory is for storing computer program, the computer program Including program instruction, the processor is configured for calling described program instruction execution a kind of as described in any one of first aspect The method for constructing local project.
The third aspect, the present invention provide a kind of computer readable storage medium, the computer-readable recording medium storage There is computer program, the computer program includes program instruction, and program instruction when being executed by a processor hold by the processor A kind of described in any item methods for constructing local project of row such as first aspect.
Method, terminal and the computer readable storage medium of a kind of building local project of the invention have the advantage that Automation equipment keeps data synchronous with open source projects data in real time, developer's property of can choose by open source projects data It is merged into local project rather than uses entire edition upgrading, the customization demand of local project will not be attached to open source projects In.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to required in being described in embodiment The attached drawing used is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings His attached drawing.
The following further describes the present invention with reference to the drawings.
Attached drawing 1 is a kind of flow diagram for the method for constructing local project of embodiment 1.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples, so that those skilled in the art can be with It more fully understands the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention, the case where not conflicting Under, the technical characteristic in the embodiment of the present invention and embodiment can be combined with each other.
The embodiment of the present invention provides a kind of method, terminal and computer readable storage medium for constructing local project, is used for Solve how in time, selectively synchronize the technical issues of open source projects data are to local project.
Embodiment 1:
A kind of method of building local project of the invention, association local project and GitHub open source projects, by GitHub Open source projects data are synchronized to local project, and will synchronize to the merging of the GitHub open source projects data selectivity of local project To local project.
This method comprises the following steps:
S100, synchronizing device, official data source branch and master data source branch are configured in local project;
S200, GitHub open source projects are synchronized to automatically by official data source branch by synchronizing device, and passed through Official data source branch stores GitHub open source projects data;
S300, make then to do customization demand as local project exploitation branch by master data source branch;
S400, when GitHub open source projects add new feature or when repair data, official data source branch is closed And arrive master data source branch.
Wherein, synchronizing device is auto-synchronizor automatic device, and official data source branch is specifically used to deposit Source item data are decontroled, master data source branch makees then to do customization demand as local project exploitation branch.
In step S200, including as follows step by step:
S210, the remote add operation addition warehouse long-range open source projects Git by Git, are matched to realize by Git The permission for setting local project, with postponing local project with pulling data and the permission of GitHub need not be logged in;
S220, the running frequency for configuring synchronizing device constantly execute following behaviour based on running frequency, by synchronizing device Make:
S221, it is operated by the fetch of Git by GitHub open source projects data pull to local project;
S222, GitHub open source projects data are synchronized to by offical data source branch by the merge operation of Git, and Retain all change records of GitHub open source projects.
In step S300, when GitHub open source projects add new feature or repair data, grasped by the merge of Git Make official data source branch data being merged into master data source branch.
GitHub open source projects are synchronized to by a kind of method of building local project of the invention, synchronizing device automatically Official data source branch, official data source branch are specifically used to store open source projects data, master data source point Flag is then used as local project exploitation branch to do customization demand.When needing the new features or repair data of open source projects, Data are merged into master data source branch from official data source branch, while not influencing in master data source branch The customization demand of exploitation.
Embodiment 2:
A kind of terminal of the invention, including processor, input equipment, output equipment and memory, processor, input are set Standby, output equipment and memory are connected with each other, and for memory for storing computer program, computer program includes program instruction, Processor is configured for a kind of caller instruction execution method for constructing local project as disclosed in embodiment 1.
Embodiment 3:
A kind of computer readable storage medium of the invention, the computer-readable recording medium storage have computer program, The computer program includes program instruction, and the processor executes such as 1 disclosure of embodiment to program instruction when being executed by a processor A kind of building local project method.
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention Protection scope within.Protection scope of the present invention is subject to claims.

Claims (9)

1. a kind of method for constructing local project, it is characterised in that association local project and GitHub open source projects, by GitHub Open source projects data are synchronized to local project, and will synchronize to the merging of the GitHub open source projects data selectivity of local project To local project, described method includes following steps:
Synchronizing device, official data source branch and master data source branch are configured in local project;
GitHub open source projects are synchronized to official data source branch automatically by synchronizing device, and pass through official number GitHub open source projects data are stored according to source branch;
Make then to do customization demand as local project exploitation branch by master data source branch;
When GitHub open source projects add new feature or repair data, official data source branch is merged into master Data source branch.
2. a kind of method for constructing local project according to claim 1, it is characterised in that automatically will by synchronizing device GitHub open source projects are synchronized to official data source branch, and store GitHub open source by official data source branch Project data includes the following steps:
The permission that local project is configured by Git, with postponing local project with pulling data and the power of GitHub need not be logged in Limit;
The running frequency for configuring synchronizing device, is performed the following operations based on running frequency, by synchronizing device:
By GitHub open source projects data pull to local project;
GitHub open source projects data are synchronized to offical data source branch, and retain that GitHub open source projects are all to be changed Dynamic record.
3. a kind of method for constructing local project according to claim 2, it is characterised in that configure local project by Git Permission include the following steps: through the remote add of the Git operation addition warehouse long-range open source projects Git.
4. a kind of method for constructing local project according to claim 2, it is characterised in that operated by the fetch of Git By GitHub open source projects data pull to local project.
5. a kind of method for constructing local project according to claim 2, it is characterised in that operated by the merge of Git GitHub open source projects data are synchronized to offical data source branch.
6. a kind of method for constructing local project according to claim 1-5, it is characterised in that when GitHub is opened When source item adds new feature or repair data, official data source branch data is merged by the merge operation of Git To master data source branch.
7. a kind of method for constructing local project according to claim 1-5, it is characterised in that synchronizing device is Auto-synchronizor automatic device.
8. a kind of terminal, it is characterised in that including processor, input equipment, output equipment and memory, processor, input are set Standby, output equipment and memory are connected with each other, and for memory for storing computer program, the computer program includes that program refers to It enables, the processor is configured for calling a kind of described program instruction execution building sheet as described in claim any one of 1-7 The method of ground project.
9. a kind of computer readable storage medium, it is characterised in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and the processor is executed as right is wanted program instruction when being executed by a processor Seek a kind of described in any item methods for constructing local project of 1-7.
CN201910793838.3A 2019-08-27 2019-08-27 A kind of method, terminal and computer readable storage medium constructing local project Pending CN110502273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910793838.3A CN110502273A (en) 2019-08-27 2019-08-27 A kind of method, terminal and computer readable storage medium constructing local project

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910793838.3A CN110502273A (en) 2019-08-27 2019-08-27 A kind of method, terminal and computer readable storage medium constructing local project

Publications (1)

Publication Number Publication Date
CN110502273A true CN110502273A (en) 2019-11-26

Family

ID=68589876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910793838.3A Pending CN110502273A (en) 2019-08-27 2019-08-27 A kind of method, terminal and computer readable storage medium constructing local project

Country Status (1)

Country Link
CN (1) CN110502273A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094851A (en) * 2015-09-06 2015-11-25 浪潮软件股份有限公司 Method for momentarily issuing codes based on Git
CN108363566A (en) * 2018-01-30 2018-08-03 中国平安人寿保险股份有限公司 File configuration method, intelligent terminal and storage medium in a kind of project development process

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094851A (en) * 2015-09-06 2015-11-25 浪潮软件股份有限公司 Method for momentarily issuing codes based on Git
CN108363566A (en) * 2018-01-30 2018-08-03 中国平安人寿保险股份有限公司 File configuration method, intelligent terminal and storage medium in a kind of project development process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无: "git使用merge对本地分支进行合并并进行代码提交的流程", 《HTTPS://WWW.CNBLOGS.COM/LOWMANISBUSY/P/9054087.HTML》 *

Similar Documents

Publication Publication Date Title
US9037595B2 (en) Creating graphical models representing control flow of a program manipulating data resources
US20150370766A1 (en) Ontology-driven requirements engineering methodology mind-mapper
US20090063213A1 (en) Generalized parametric optimization architecture and framework
US20140172401A1 (en) Method of simulating discrete event
CN104915193A (en) Flow engine processing method and device
US8185370B2 (en) Discrete event simulation tool combining process-driven and event-driven models
CN109960538A (en) A kind of configuration interface management method, configuration interface managing device and electronic equipment
CN101093445A (en) Multistep prediction method and system based on automatic mining sequential data in software procedure
CN102098303A (en) Hardware firewall for realizing automatic upgrade and upgrading method thereof
US10878185B2 (en) Annotation-based dependency calculations
CN101753619A (en) Method and system for extending service model
CN110502273A (en) A kind of method, terminal and computer readable storage medium constructing local project
EP2930576A1 (en) Controlling a manufacturing plant with a MES system
Mainkar Expert Android Programming: Master skills to build enterprise grade Android applications
CN110941422A (en) Code automatic generation method, code generator and readable storage medium
US8752004B2 (en) System and a method for generating a domain-specific software solution
CN109840106A (en) Upgrade method, system and the terminal device of firmware in a kind of embedded system
CN112784417B (en) Avionics distributed joint simulation method and system based on SysML
Haarmann Fragment-Based Case Management Models: Metamodel, Consistency, & Correctness.
Ciraci et al. Guiding architects in selecting architectural evolution alternatives
US20090138249A1 (en) Defining operational elements in a business process model
Sporer et al. Resilient interface design for safety-critical embedded automotive software
US20070168921A1 (en) Method for automatic recovery of uml model requirements and updating thereof
CN111951488A (en) Structure configuration method and device of intelligent cabinet, computer equipment and storage medium
CN110471921A (en) It is a kind of intelligence contract configuration, call and update method, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191126

RJ01 Rejection of invention patent application after publication