git 在android studio中重新关联远程仓库地址的方法
方法有三种:
1.修改命令
git remote set-url origin [url]
例如:Git remote set-url origin [email protected]:PHP/hasoffer.git
2.先删后加
git remote rm origin
git remote add origin [url]
3.直接修改config文件
git操作及fatal: Authentication failed for错误解决
1、配置用户信息
git config --global user.name [username]
git config --global user.email [email]
2、查询用户信息
git config --list
如果push遇到在输入密码是熟错后,就会报这个错误fatal: Authentication failed for
3.解决办法:
git config --system --unset credential.helper
之后你在push就会提示输入名称和密码