其实很简单 在home目录下 vim .gitconfig 添加两句 [credential] helper = store 搞定 转载于:https://my.oschina.net/shanezhou/blog/468541