Some understandings of the use of repo

Source: Internet
Author: User

1. Repo Sync

Synchronize the latest local working file, the update succeeds, the local file and the server code are the same. You can specify which project needs to be updated, and if you do not specify any parameters, the entire project is synchronized.

If you are running Repo sync for the first time, this command is equivalent to Git clone, which copies all of the server's content locally. Depending on the git commit in the XML file in the manifests, this repo init specifies which XML to use;

If you are not running Repo sync for the first time, it is equivalent to git remote update; Git rebase origin/branch. Merge code on server with local; Repo sync updates. Repo the following files. If there is a conflict during the merge process, this needs to be run manually: Git rebase--continue

2. Repo Branch

Repo Branch: Here through repo init-b <branch>, the branch specified in-B is the branch of manifests, different branches, where the contents of the file manifest differ.

XML Branch: Specifies that the repository default branch is the revision property value through the Revision property of the default entity in the manifest file Manifest.xml, which is the common starting point for all git projects in the working directory after repo sync, which means , the manifest corresponds to all git projects with a branch named Revision attribute value, Repo sync, in any git library under Repo working directory, using the branch created by Git branch or repo start, Are created based on a branch in the GIT library that has the name revision attribute value. We can set this branch to a name similar to the Repo branch.

3. Repo Start

Create a branch using repo Start-all, which is created based on the commit and branch of the XML file, and will then become a commit of all periods of software that initializes the specified XML file with checkout init after using repo repo. Equivalent to reverting to a previous version of the software;

Some understandings of the use of repo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.