基于https协议使用git push的时候提示以下错误该怎么办?

$ git push
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/wanghuiwiki/shop.git/'

git push -u origin main (注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码)

结尾:不论怎么gitpush,都不能把本地仓库的内容文件上传到线上仓库,问该怎么办?

====================================================
解决问题:参考https://segmentfault.com/a/11...

阅读 1.9k
1 个回答

这英文写得很清楚了啊,通过密码 push 已经不支持了,该怎么办也告诉你了,可以用 git 协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题