假设我的 git 用户名是 'gitme',密码是 'gitpass'。我如何将密码更改为 'gitpass1'?请告诉我。
你可以将密码放在 .netrc 文件中(在 Windows 上是 _netrc)。从那里它会自动被识别。它将进入您的主文件夹,并具有 600 权限。
一种新选项是使用凭据助手。请注意,使用标准凭据助手存储的凭据将以明文形式存储在本地配置中。Wincred 的凭据助手也可用于 Windows。
凭据助手的使用示例
git config credential.helper store - stores the credentials indefinitely.
git config credential.helper 'cache --timeout=3600'- stores for 60 minutes
要在 GitHub 重置/更改密码,请访问网站。
在Bitbucket中更改密码