我在bitbucket上设置了一个git存储库
$ git remote -v
origin https://[email protected]/myusername/my_repository_name.git (fetch)
origin https://[email protected]/myusername/my_repository_name.git (push)
我从办公室工作站和家用PC推入存储库。当我从办公室工作站推入或拉出时,它会提示我输入密码。但是,当我从家用PC推入或拉出时,它不会提示您输入密码。
我不特别记得我在家用PC上所做的记住密码的操作。
连续$ git config credential.helper
收益manager
$ git config credential.helper
manager
根目录下.gitconfig
我的用户文件夹中的内容文件
[user]
name = myusername
email = [email protected]
密码存储在本地磁盘上的什么位置?
检查当前凭据状态的命令是什么?
我如何同样在办公室工作站上记住密码?
注意:我正在使用Windows 7
如果$ git config credential.helper
返回manager
,则密码存储在Windows凭据管理器中;如果返回store
,则密码存储在.git-credentials
用户文件夹中的文件中。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句