试图找出如何强制命令行git使用Github令牌。如果我用用户名和令牌(如git clone https://<user>:<mytoken>@git.web.com/organization/repository)克隆存储库,那么一切都很好。当我试图在没有用户名或令牌的情况下进行克隆时,操作失败时会出错:
remote: Passwordauthentication is not available f
--如果您使用HTTPS协议进行Git操作,并且当用户克隆任何repo时,基本上都会显示错误,请显示=>:
Password for 'httpsaccount passwords for Gitauthentication.remote: App passwords are recommended for most use cases and can be created in your Personal set
git pushremote: Support for passwordauthenticationPlease use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-<e