赞
踩
Support for password authentication was removed on August 13, 2021. Please use a personal access tok
github 网站更新了验证方式
1.登录github账号,点击settings,点击Developer settings
2.点击Personal access tokens
3. 点击Generate new token
4. 默认创建下去即可,建议Select scopes全选
5. 记下创建的 token,以后它就取代所有 需要输入的密码了,比如gitpull 要求输入账号,和token
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
refer:https://github.com/microsoft/Git-Credential-Manager-Core#linux-install-instructions
1.安装github的密码界面弹出组件【一下连接中有linux和win的介绍】
https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
$ brew install git
$ brew tap microsoft/git
$ brew install --cask git-credential-manager-core
2.安装完成可以尝试git命令
git push
弹出对话框,选择token,输入token,即可完成推送
git pull
要求输入账号:正常账号
输入密码: 输入token 即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。