Solution Fatal:remote Error:you can ' t push to git://github.com/username/*.git problem _linux

Source: Internet
Author: User

Solution of Fatal:remote Error:you can ' t push to git://github.com/username/*.git problem

Today, when Git push

Fatal:remote error:
can ' t push to git://github.com/username/*.git use
git@github.com:username/*.git

I don't think I have the right to push.

Workaround:

Git remote rm origin
git remote add Origin git@github.com:username/resname.git

The next step is to push.

This problem is usually caused by the protocol chosen at the time of clone. If the git://github.com/userna/userrepository.git is used. Read-only permissions cannot be written to. Cause cannot push.

To use the SSH protocol to push, so clone uses Git@github.com:username/userrepository.git

SSH must also be created with an SSH Key. and fill in the public key to the user in GitHub information. specifically see the corresponding help of GitHub

Thank you for reading, I hope to help you, thank you for your support for this site!

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.