#

PAT代替密码密码验证


PAT代替密码验证

2021年8月13日git终止密码验证提交程序,强制使用PAT验证方式,这是一件好事,减少密码泄露。

fatal: unable to access 'https://github.com/wsp666/wsp666.github.io/': The requested URL returned error: 403
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (D:\Hexo\blog\node_modules\hexo-util\lib\spawn.js:51:21)
    at ChildProcess.emit (events.js:210:5)
    at ChildProcess.cp.emit (D:\Hexo\blog\node_modules\cross-spawn\lib\enoent.js:34:29)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

方法

通过"github -> account -> settings -> Developer settings -> Personal access tokens"处,点击Generate new token。因为只是需要git push之类的操作,所以勾选repo选项,即可。随后token生成成功,然后再在本地git bash中进行git push,账号还是原来的github账号,密码改为填写刚刚生成的token即可。之后就不会再重复输入密码了。

image.png

保存好代码后直接替换之前的密码即可。可在凭据管理器中查看相关信息。


文章作者: 王胜鹏
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 王胜鹏 !
评论
 上一篇
SVD奇异分解 SVD奇异分解
SVD奇异分解 SVD也是对矩阵进行分解,但是和特征分解不同,SVD并不要求要分解的矩阵为方阵。假设我们的矩阵A是一个m×n的矩阵,那么我们定义矩阵A的SVD为: A=UΣVTA=U\varSigma V^T A=UΣVT 其中UUU是一个
2021-08-26
下一篇 
PyTorch训练神经网络 PyTorch训练神经网络
PyTorch训练神经网络 可以使用torch.nn包来构建神经网络。 nn包则依赖于autograd包来定义模型并对它们求导。一个nn.Module包含各个层和一个forward(input)方法,该方法返回output。 如图这个神经网
2021-08-14
  目录