[英]How to change the git password using command prompt?
假设我的git用户名为'gitme',密码为'gitpass'。 如何将密码更改为“gitpass1”? 请告诉我。
您可以将密码放在.netrc文件中(_netrc on windows)。 从那里它将被自动拾取。 它将以600权限转到您的主文件夹。
一个新选项是使用凭证助手。 请注意,凭据将使用标准凭据帮助程序以明文形式存储在本地配置中。 wincred的credential-helper也可以在windows上使用。
凭证助手的使用示例
git config credential.helper store - stores the credentials indefinitely.
git config credential.helper 'cache --timeout=3600'- stores for 60 minutes
要在GitHub中重置/更改密码,请访问此网站 。
在Bitbucket中更改密码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.