github oauth第三方登陆



Git token 联合登陆(SSO)又两种方式:

– Web-base application

– Nonweb-base application (这种方式是受限的)


  • 只支持https模式,不支持ssh模式


Once you have a token, you can enter it instead of your password when performing Git operations over HTTPS.

For example, on the command line you would enter the following:

$ git clone
Username: your_username
Password: your_token

Personal access tokens can only be used for HTTPS Git operations. If your repository uses an SSH remote URL, you will need to switch the remote from SSH to HTTPS.

If you are not prompted for your username and password, your credentials may be cached on your computer. You can update your credentials in the Keychain to replace your old password with the token.

应用: 官方文档