git clone https://github.com/hanyuhang-hz/jni-functions.git
修改代码
git push origin main
昨天想把之前的jni-functions上传到github上,才发现Github在2021.8.13起不再支持基于密码的授权方式,后续出现的问题记录下。
1 问题:Support for password authentication was removed on August 13, 2021. Authentication failed for ...
Github即日起不再支持基于密码的授权方式,参考:
https://blog.csdn.net/vitaviva/article/details/119842190?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link
创建token:
xxxxxxx
2 设置不用输入密码
修改.git/config:
3 问题:The requested URL returned error: 403(429)
是需要重新更新私钥:
repo是可以git push origin main
write:packages是可以git push origin main -f