git push出错

在github上创建了一个私有仓库

 但是push代码时出错。。

 >>https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/

>>Creating a personal access token:https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

-使用git提交代码到github仓库:https://blog.csdn.net/littlexiaoshuishui/article/details/88072019

-git之github使用(一):push代码到github:https://segmentfault.com/a/1190000000392120

 

使用Token代替Password(用户名不变):

Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

Changes not staged for commit :https://blog.csdn.net/jiangyu1013/article/details/103474036

原文地址:https://www.cnblogs.com/2008nmj/p/15205557.html