Some of the problems with GitHub and code clouds have been verified by ourselves _git

Source: Internet
Author: User
Error tip: Fatal:remote origin already exists.
WORKAROUND: $ git Remote RM origin


$ Git push origin master time
Error tip: error:failed to push som refs to
Workaround: $ Git pull Origin master//first pull the file from the remote server GitHub and push it up.


Could not read from remote repository//permissions issues

WORKAROUND: You need to upload files to the GitHub git system, need an SSH key to authenticate, and start generating keys and submitting keys.
Open git Bash and create SSH key:
1 ssh-keygen-c ' your@email.address '-t RSA
Then you have to enter the location of the SSH key, you can no matter, direct return to use the default path. Then enter the password you want, SSH key
is generated. Now you need to submit this key to GitHub, first open the key to save the location, there will be three files, find
Id_rsa.pub, open with a text editor, and copy all the characters inside. To GitHub, find account in the upper right toolbar.
Settings. There is an SSH public keys tab on this page and select Add another public key. Title can be casually
Fill in one, key to paste just the characters, submit.

Once you've done this, you can upload your own code.


If you want to return to the previous submission

First of all

git log//Find the version number to be returned
Roll back to the specified version
git reset--hard e377f60e28c8b84158
Force commit
Git push-f Origin Master
Complete

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.