1, Source Tree add account: Password is not the password of the Github account, but the Personal Access token generated in the Github personal account setting. The Personal access token is only visible once on the Github page, so it needs to be saved.
2, when clone repository is remote, fill in Source URL: XXXXX is accessToken of the previous step, this step sometimes error invalid URL, retry a few times, probably because of network reasons. [email protected]/XinleZhou20…
3. Clone failed several times, possibly due to the Internet. It was said on the Internet that the following name was used, but it was not clear. In addition, the ladder is also enabled with global proxy (all apps go proxy)
ZhouXinle-MBP:~ zhou$ git config --global --unset http.proxy
ZhouXinle-MBP:~ zhou$ git config --global --unset https.proxy
Copy the code
SSH key is automatically generated by source Tree. MAC version Source Tree does not know how to select other SSH keys.
Click copy to clipboard and copy to SSH Keys on github.
5. After step 4, use SSH git link and find invalid URL still displayed.
$ ssh-add -l
Copy the code
Use this command to display The agent has no identities. Then use the ssh-add -k command to permanently add SSH to the system.
Then try using SSH link to pull, it is successful.
6. If you have to, use github’s own client.
Reference: stackoverflow.com/questions/5… www.jianshu.com/p/ccb143e92…