关于git命令的 git push 403 错误

用git clone的 代码,本地修改之后无法 git push 上去,出现 403 拒绝错误。

原因是 使用的老版本的git check下来,老版本提交时寻找的文件https://github.com/harveyaot/c_test.git/info/refs 到一个refs文件,github提示 请更新 git client。

于是从 https://git-core.googlecode.com/files/ 中get 下最新的 git 安装文件

config -- prefix = user/local

make & make install 之后,添加的新的path中去

git --version 1.84

于是问题解决 git push OK~

原文地址:https://www.cnblogs.com/harveyaot/p/3336446.html