1.修改某个具体项目中的用户名密码
https://用户名:密码
2.修改全局的用户名密码
vim ~/.git-credentials
3.修改git保存用户名和密码
git config credential.helper store
git 修改客户端用户名和密码
原文:http://www.cnblogs.com/zhangshiwen/p/7742750.html