我的远程git存储库密码存储在本地计算机上的什么位置? [英] Where is my remote git repository password stored on the local machine?

查看:667
本文介绍了我的远程git存储库密码存储在本地计算机上的什么位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在bitbucket上建立了一个git存储库

  $ git remote -v 
origin https:// myusername@bitbucket.org/myusername/my_repository_name.git(获取)
来源https://myusername@bitbucket.org/myusername/my_repository_name.git(推送)

我从办公室工作站和家用PC推入存储库。
当我从办公室工作站推入或拉出时,它会提示我输入密码。
但是,当我从家用PC推入或拉出时,不会提示输入密码。



我不特别记得自己在家里所做的事情PC会记住密码。



运行 $ git config credential.helper 返回 manager

  $ git config credential.helper 
管理者

我的用户文件夹中根目录下的内容 .gitconfig 文件

  [用户] 
名称= myusername
电子邮件= user.name@email.com

本地磁盘上存储的密码在哪里?



要执行的命令是什么检查当前凭据的状态?



我如何同样地记住办公室工作站上的密码?



注意:我正在使用Windows 7

解决方案

如果 $ git config credential.helper 返回 manager ,密码存储在Windows c中还原管理器,如果它返回 store ,则密码存储在用户文件夹中的 .git-credentials 文件中。 / p>

I have a git repository set up on bitbucket

$ 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)

I pull and push to the repository from my office workstation and home PC. When I push or pull from my office workstation, it prompts me for the password. However when I push or pull from my home PC it doesn't prompt for a password.

I don't specifically remember what I did on my home PC to remember the password.

running $ git config credential.helper returns manager

$ git config credential.helper
manager

Contents .gitconfig file in my user folder at root level

[user]
name = myusername
email = user.name@email.com

Where is the password stored on the local disk?

What is the command to check the status of current credentials?

How do I similarly remember the password on my office workstation?

Note: I am using Windows 7

解决方案

if $ git config credential.helper returns manager, the password is stored in the windows credential manager, if it returns store, password is stored in a .git-credentials file in the user folder.

这篇关于我的远程git存储库密码存储在本地计算机上的什么位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆