在终端输入:

git config --global credential.helper store

然后git pull一次,输入一次用户名密码就会自动保存该用户名密码;

查看配置的用户信息:

git config --list

相关文章: