.. 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.1
After 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.