Git asks for password for each commit and pull

社会主义新天地 提交于 2019-12-03 21:50:16

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.

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