git https记住密码

一、记住密码

设置记住密码(默认15分钟):

git config --global credential.helper cache

 

设置记住密码时间:

git config credential.helper 'cache --timeout=3600'

  

永久保存密码:

git config --global credential.helper store

  

 

二、清楚密码

git config --system --unset credential.helper

  

三、修改远程地址

git remote set-url origin https://gitee.com/xxx/xxxx.git

  

posted @ 2020-12-29 11:23  枯藤老艹树  阅读(303)  评论(0编辑  收藏  举报