git push错误 报error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 fatal: The remote end hung up unexpectedly

error code:

error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: The remote end hung up unexpectedly

Solution:

1, run the command

git config --global credential.helper store

2, re-push

git push -u origin master

3. Follow the prompts to re-enter your user name and password GitHub

 

Cause Analysis:

Usually modify GitHub user name or password cause

 

Guess you like

Origin www.cnblogs.com/jasonzhang-blog/p/11298542.html