1、首先在git hub配置Personal access tokens,路徑在Settings > Developer settings > Personal access tokens > Generate new token下,注意生成后需要找地方記下來,不然是無法復看的。
2、復制你的倉庫地址,例如:
https://github.com/zhangsan/my-project.git
改成如下樣式
https://你的github賬號:你的token@github.com/zhangsan/my-project.git
然后使用TortoiseGit拉取這個地址的代碼就可以了