目录 一、默认记住密码15分钟二、设置记住密码时间三、永久记住密码四、增加远程链接时就设置密码 一、默认记住密码15分钟 git config --global credential.helper cache 二、设置记住密码时间 git config credential.helper 'cache --timeout=3600' 三、永久记住密码 git config --global credential.helper store 四、增加远程链接时就设置密码 http://user:password@192.168.1.15/yyproject/shop.git