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