The GIT push code Gogs reports error 401.

Source: Internet
Author: User

1. Git push error: RPC failed; http 401 curl 22 the requested URL returned error: 401 the remote end hung up

2. cause: the user name and password are incorrect, resulting in verification failure and no permission to push

3. solution:

(1) Delete the original Remote Data source:

Git remote RM Origin

(2) re-Add the remote data source, that is, add the username @ ([email protected]) before git after http:

Git remote add origin http://[Email protected]: 3000/XXX/xxx_xx.git

(3) check that the remote data source has been added successfully:

Git remote-V

(4) execute the push operation again. You will be prompted to enter the user name and password again, and enter the correct user name and password. If you enter an error, the push still fails.

The GIT push code Gogs reports error 401.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.