Git asks for password for each commit and pull

烂漫一生 提交于 2019-12-05 04:23:41

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/19029987/git-asks-for-password-for-each-commit-and-pull

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!