首页 > 其他分享 >github push 要求密码,但是密码已经弃用的解决方案

github push 要求密码,但是密码已经弃用的解决方案

时间:2023-05-04 17:14:35浏览次数:42  
标签:github Personal click 密码 token push password your

参考资料:https://bobbyhadz.com/blog/support-for-password-authentication-was-removed-on-august

 

1. 创建 github personal access token

  1. Visit https://github.com and in the upper-right corner, click on your profile picture and then click Settings.

click profile photo click settings

  1. In the left sidebar, click on < > Developer settings.

click developer settings

  1. In the left sidebar, click on Personal access tokens and then Tokens (classic).

  2. From the Generate new token dropdown menu select Generate new token (classic).

generate new token classic

  1. Give your token a descriptive name.

give your token a name

  1. Select when the token should expire from the dropdown menu. I'll use the default expiration of 30 days.

  2. I'll check all checkboxes in the Select scopes section, but you can only select the scopes you require for fine-grained control.

select scopes check all checkboxes

  1. Click on the Generate token button.

click generate token

  1. IMPORTANT - Make sure to copy your Personal Access Token now. You won't be able to see it again.

copy personal access token

  1. Treat your access token like a password. You can enter your token instead of your password when performing Git operations over HTTPS.

  2. Store your Personal Access token in a local file or in a secure remote password manager.

 

 

If you need to clone a private GitHub repository or push to a repository, you can use your Personal Access Token when you get prompted for a password.

 

 

以后输入密码输入这个 personal token 就行

 

标签:github,Personal,click,密码,token,push,password,your
From: https://www.cnblogs.com/yinhuachen/p/17371854.html

相关文章

  • vue this.$router.push 页面传值问题
    在修改一个别人的bug的时候发现一个问题,记录一下,vue前端页面在刷新页面后只读页面可以编辑了在前一个传值页面他的写法是this.$router.push({name:'xxx',query:{isEdit:false}});在接收的时候写的是this.isEdit=this......
  • 验证码,发送短信验证码,校验确认密码和密码,密码需要数字字母特殊字符任选2种组合
    密码需要数字字母特殊字符任选2种组合constvalidatePwd=(rule,value,callback)=>{constreg=/(?!^(\d+|[a-zA-Z]+|[~!@#$%^&*?]+)$)^[\w~!@#$%^&*?]{8,32}$/if(reg.test(value)==true){callback()}else{callback(newError(&#......
  • jenkins 查看凭证密码以及重置admin密码的操作方法
    找回凭证密码打开Jenkins的系统管理页面的脚本命令行页面  在输入框输入如下代码点击运行即可查看所有凭证对应的密码:  按下ctrl+F组合键查找凭证ID就能搜索到该凭证对应的密码对单个凭据解密jenkins下找到credentials.xml 文件中<password>中对应的字符串......
  • django-channel 配置 channel layer 添加redis的账号和密码
    最近公司要使用django-channel搭建socket, 文档:https://channels.readthedocs.io/en/stable/introduction.html文档里面并没有写如果redis有账号和密码的话,怎么配置。配置方法:https://github.com/django/channels/issues/164#issuecomment-220513297如下:CHANNEL_LAYERS......
  • github修改好代码后上传已有仓库
    github修改好代码后上传已有仓库在GitHub上修改代码并将其推送到已有仓库的步骤如下:确保您的本地代码与GitHub仓库中的代码是同步的。您可以使用gitpull命令从远程仓库中获取最新代码并将其合并到您的本地代码中。如果您在本地进行了修改,请确保将其推送到远程仓库之前进行提交......
  • 如何回退未push的commit?
    如何回退未push的commit?教你一招,简单好用当你写完代码,提交了commit后,才发现分支错了,或者是下面这种情况(其他小伙伴协同开发,在一个分支上push了代码,但你不清楚,在未pull的情况下,先commit了你的代码),当你push代码时,会有以下报错: 提示让你merge,先别管他,此时去看一看git仓库,发现是有......
  • github报错Failed to connect to github.com port 443 after 21313 ms: Couldn't conn
    github报错Failedtoconnecttogithub.comport443after21313ms:Couldn'tconnecttoserver网络连接问题,我开vpn了。github报错Recvfailure:Connectionwasreset该错误通常表示网络连接问题,可能是您的Internet连接出现问题或GitHub服务器上的连接问题。刷新重新登......
  • oracle修改用户密码的方法
    Oracle用户名及默认密码 修改oracle用户的密码有以下方法:普通用户 (1)通过alteruser语法来进行修改,这也是最常见的方式:(2)第二种方式,是通过password命令来修改:从安全性角度来说,推荐大家通过第二种方式来修改用户密码,这样可防止明文密码泄露。sys用户......
  • 解决上传md文件时出现的“<Fault 401: '请配置正确的用户名与访问令牌(access token),
    使用的工具:pycnbolg下载地址:https://github.com/dongfanger/pycnblog具体操作按这位大神的博客:如何在博客园上传markdown文件-NotYourferry-博客园(cnblogs.com)出现报错如图:偶然看到这两位的评论:于是我将config.yaml中的password改成了我的令牌,就上传成功了。......
  • 是时候,升级你的 Windows 了「GitHub 热点速览」
    不知道多少小伙伴用着Windows操作系统,可能会有一个烦恼是有时候操作系统过慢,因为众多拖慢Windows系统的组件。Atlas作为一个修改版的Windows系统,能极大提高操作系统运行效率。说到升级,除了Atlas之外,还有主打内存安全的sudo升级版sudo-rs,以及pip等常见Python包管......