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. )