Some problems and solutions in the process of using repo

Source: Internet
Author: User
Tags commit

As a new rookie, the past half-month busy is the burn, encountered a lot of problems, but there is no time to write down. Take advantage of today's time to record some of the problems and solutions encountered in the use of repo.

One, repo sync error :. repo/manifests/: Contains uncommitted changes such errors. The literal meaning is that the code has changed but there is no commit. But several times I looked at the code and changed the changes through the git reset--hard <commit id> command, but still prompted such errors. Strong Google let me find a solution:

Enter the CD. Repo/manifests into the manifests directory, run git stash after running git clean-d-f to restore the change record. And then you can repo sync.

Second, the operation as above sometimes brings new problems, after repo init we may modify the . Repo/manifests.xml file by modifying the fetch= ' "..." Word add your own source of code. When you do step one, the Manifests.xml file is restored. So when you re-repo sync, you may report the following error:

Fatal: '. /platform/abi/cpp.git ' does not appear to be a git repository
Fatal:the remote end hung up unexpectedly
Error:cannot Fetch Platform/abi/cpp

There are two ways to solve this problem. 1. Re-open the Manifests.xml file and save it after adding the code source.

2. Run git config--global url.xxxxxx/.insteadof. The second method is strongly recommended, because the second method sets the global amount, even if you restore the Manifests.xml file again later without adding the code source.

(seems to have encountered some problems, but not in time to record down, busy up on the busy forget, and so the next time you meet again update it. )

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.