git常见错误记录
1 Git报错fatal:Authentication failed for‘https://git……解决方法 方法一配置全局参数: git config --global user.name “xxx” git config --global user.email “xxx” 方法二: git remote -v git remote remove origin git remote add origin xxx 方法三(可以解决): git config --system --unset credential.helper 执行这个命令之后,你可以重新写入账号密码,这样就可以重新提交代码了。
2 fatal: not a git repository (or any of the parent directories): .git 这个错误
需要用以下指令来初始化一个新的Git仓库:
git init