1. Settings ==> Developer settings ==> Personal access tokens ==> Generate new token 生成新的token
2. https://github.com/xxx.git
3.oauth2:xxxx@ (xxx是生成的token)
4.拼接之后: git clone https://oauth2:xxxxxxx@github.com/xxxxx.git
其实就是在https:// 之后加上 oauth2:xxxxx@, 最后变成:https://oauth2:xxxxxxx@github.com/xxxxx.git ;