Git为每个提交和拉取请求密码 [英] Git asks for password for each commit and pull

查看:142
本文介绍了Git为每个提交和拉取请求密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2012和Git扩展。
我正在使用bit-bucket来存储项目。

每一次 - 每当我想要推或拉Git请求我输入账户密码


谢谢。

使用 gitcredentials 并告诉它记住您的密码一段时间

  git config --global credential.helpercache --timeout = time_in_seconds

举例来说,如果您想让它记住第二天它会是 60 * 60 * 24 = 86400 秒,所以命令看起来像

  git config --global credential.helper cache --timeout = 86400

希望这有助于您。


I am using Visual Studio 2012 with Git extension. I am using bit-bucket for storing project.

Each and every time - whenever I want to either push or pull Git ask me for account password in windows 8.

Thanks.

解决方案

You can use gitcredentials and tell it to remember your password for some time

git config --global credential.helper "cache --timeout=time_in_seconds"

for example if you want it to remember for the next day it would be 60 * 60 * 24 = 86400 seconds, so the command would look like

git config --global credential.helper "cache --timeout=86400"

Hope this helps.

这篇关于Git为每个提交和拉取请求密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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