The file on github cannot be found because a synchronization error occurs during cm10.1 synchronization.

Source: Internet
Author: User

.. I applied for a blog two days ago .. To record.

By ronabinho

Environment linux deepin

Problem: When syncing cm10 and cm10.1, the source code is synchronized from the official cm source code on github. Executedrepo init -u git://github.com/CyanogenMod/android.git -b cm-10.1After a synchronization command, the command line prompts that the problem cannot be found in github. Ask if you want to add a private key or something.

Try to solve the failure record: In github, the file to be synchronized can be found, and it is initially suspected that the git tool is not good. Use git: // example .. At that time, I thought I had ruled out this possibility and put it on hold because of some issues.

Correct resolution record: Find the github official page and find that the website uses a strongly protected https instead of a well-protected http: // then suddenly think of this problem. Today, I finally made up my mind to deal with him (mainly because tomorrow is not available, so I plan to release it next day. No other problems have been found.

Solution: Go to the source directory and execute repo init-u https://github.com/CyanogenMod/android.git-B cm-10.1.

In this case, you need to use https: // when using the repo command to init the address ://

In fact, some people have released solutions on the Internet. It's just that git is not clear. Post the method. I hope someone can answer it.

It is this:

You can directly specify https in the command line. After man git-clone, A ~ is created ~ /. Gitconfig:

[Url "https://github.com/"]
Insteadof = git: // github.com/

Now, yaourt is changed to https.

Related Article

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.