Git push error; fatal: the remote end hung up unexpectedly

Source: Internet
Author: User

Run the following command on ubuntu10.04:

Git clone git: // xxx

XXX is the source code path. Copy the code on git and execute the GIT commit and git push commands respectively. After git push is executed, the terminal directly outputs the following error:

Fatal: the remote end hung up unexpectedly

There are no other prompts.

I asked the Google guru, and according to the prompts, most of them are about permissions. I checked carefully and found that this problem does not exist. After a long time, I was reminded by my colleagues that the reason was: git clone git: // XXX. This is a read-only method to get code and cannot push git. The solution is to use git clone git @ xxx, which is a way to obtain the source code by reading and submitting code (GIT push), but requires Password confirmation.

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.