git push error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403

Record a git push error solution, rarely encountered, but forget how to solve it…

error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403

reason:

        There is only one reason I have encountered here, that is, the password of GIT account is set to be remembered permanently, and then this problem is easy to occur when switching users, because the account password has changed

Solution:

        Modify git configuration file   . git/config   As shown in the figure:

        vim .git/config

        Add the URL to the   // After adding your user name and @ character;

        When submitting again, the account password input box will pop up. After input, you can operate normally

Similar Posts: