1、配置用户信息
git config --global user.name [username]
git config --global user.email [email]
2、查询用户信息
git config --list
3、如果push遇到在输入密码出错后,就会报这个错误fatal: Authentication failed for
解决办法:
git config --system --unset credential.helper
之后你在push就会提示输入名称和密码
4、修改远程库地址
git remote -v
# 查看当前的远程仓库
git remote set-url origin https://where you want to put your repository to.git
# 修改为想要设置的远程仓库
git remote -v
#验证一下