git设置永久记住用户名和密码,避免每次都得输入密码

256 阅读1分钟

\

1. 在服务器 ,输入命令

git config --global credential.helper store

\

2. 查看保存的密码

cat ~/.git-credentials 

\

3. 查看当前服务器的git密码配置方式

cat ~/.gitconfig 

\

\

\

End 。