gitee上传代码https返回403报错
分析原因
如果采用https方法上传代码,应该使用的是密码方式。如果报403问题,可能是本地缓存密码有问题。
解决办法
# 清理密码缓存
git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
# 上传代码
git push
# 设置缓存密码
git config --global credential.helper store