赞
踩
Missing or invalid credentials.
应该是原来创建的token过期了,直接执行步骤3即可
1. cd ~/.ssh
2. ssh-keygen -t rsa -C 'xxxxx@qq.com'
3. 执行上一命令后会生成一下文件id_rsa和id_rsa.pub,将id_rsa.pub拷贝到github
note:如果.pub文件已经存在,直接拷贝即可
#设置git 缓存
#默认缓存15分钟
git config --global credential.helper cache
#可以更改默认的密码缓存时限
git config --global credential.helper 'cache --timeout=3600'
pull时再输入一遍用户名和token以后就不用输入了
references:
https://cloud.tencent.com/developer/article/2235142
https://www.cnblogs.com/convict/p/14888283.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。