git命令

保存账号密码

下面命令会将下次弹框的账号和密码保存起来,永久使用。

git config --global credential.helper store

如果想要清除该账号和密码,使用如下命令:

git config --global credential.helper reset

想要临时存储(默认15min),使用如下命令

git config --global credential.helper cache

windows下的临时存储命令不是上面的,应该使用下面的命令

git config --global credential.helper wincred
posted @ 2020-09-10 10:38  龌龊猫  阅读(119)  评论(0编辑  收藏  举报