Rah*_*dav 17 git credentials credential-manager
我在bitbucket上设置了一个git存储库
$ git remote -v
origin  https://myusername@bitbucket.org/myusername/my_repository_name.git (fetch)
origin  https://myusername@bitbucket.org/myusername/my_repository_name.git (push)
我从办公室工作站和家用电脑上拉到存储库.当我从办公室工作站推或拉时,它会提示我输入密码.但是,当我从家用电脑推或拉时,它不会提示输入密码.
我不记得我在家用电脑上做了什么来记住密码.
跑步$ git config credential.helper回报manager
$ git config credential.helper
manager
根目录下的.gitconfig用户文件夹中的内容文件
[user]
name = myusername
email = user.name@email.com
密码存储在本地磁盘上的哪个位置?
检查当前凭据状态的命令是什么?
我如何同样记住办公室工作站上的密码?
注意:我使用的是Windows 7
Rah*_*dav 21
如果$ git config credential.helper返回manager,则密码存储在Windows凭证管理器中,如果返回store,则密码存储在.git-credentials用户文件夹的文件中.
Gab*_*son 11
sudo cat ~/.git-credentials
如果您在本地保存了凭据,将会产生
https://<USERNAME>:<PASSWORD_OR_TOKEN_IN_USE>@github.com
| 归档时间: | 
 | 
| 查看次数: | 19078 次 | 
| 最近记录: |