简体   繁体   中英

Git asks for password for each commit and pull

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM