1、查看远程库
git remote -v
2 设置git远程库的用户名密码
git remote set-url origin [url]
如:git remote set-url origin http://username:passwd@10.74.120.140:3000/cb/ks.git
git remote rm origingit remote add origin [url]