全局设置
git config --global user.name [username]
git config --global user.password [userpassword]
当前项目生效
git config user.name [username]
git config user.password [userpassword]
如果想要免密码操作,正常上传或拉去数据后,执行下面语句,即可
git config --global credential.helper store