1、打开全局 .gitconfig 2、在上面添加 [credential] helper = store 3、使用时输入一次帐号密码就可以了 转载于:https://my.oschina.net/Twitter/blog/222045