GitHub continues to toss

Source: Internet
Author: User

Again in the toss GitHub , originally previously in Neworiginou this GitHub uploaded project;

Now want to joely upload project on another GitHub, found that according to the previous process to do a test, incredibly failed to upload success!

After the discovery, the previous Neworiginou account set SSH key, and Joely did not, is not the reason, so the re-test can be neworiginou on the uploading of items, lying trough, incredibly also can not be why?

Input command:$ssh -T git@GitHub. COM

Hints are:

Warning:permanently added the RSA host key for IP address ' 192.30.252.129 ' to the list of known hosts.

Permission denied (PublicKey).

I ssh key is no longer exist or modified, so into the ~/.ssh/directory found there is a known_hosts file, open view, a bunch of information is not read, first or back up, in case of usefulness; then follow the online tutorial to re- create the ssh Key bar

Reference:http://www.xuanfengge.com/using-ssh-key-link-github-photo-tour.html

$ ssh-keygen-t rsa-c "[Email protected]"

Then all the way to enter;

Then add ssh key to GitHub;

Copy the contents of the public key to the system Pasteboard

My way is to go to the folder to open the file to select all copies;

Steps:

Open the hidden file first:

    1. Defaults write Com.apple.finder Appleshowallfiles-bool true
    2. 2. Killall Finder
    3. 3. go to personal ->.ssh folder open
    4. Want to upload a project that has been down on GitHub to my GitHub, but it's not successful.
    5. The practice is to delete the. git file under a folder

Delete all . Git files under a folder

Find. -name ". Git" | Xargs RM-RF

Then do upload, fail;

But I started off on GitHub with the empty project on my github and then copied the existing project file into this empty project file, and of course I can't copy the. git file, and then upload it, incredibly successful! That's what we're uploading.

Https://github.com/neworiginou/testtutu

Reference Link: http://blog.csdn.net/leikezhu1981/article/details/47664215

Chi bin provided by: http://www.runoob.com/w3cnote/git-guide.html

I'll toss it later.

Two github accounts tied to a single computer

GitHub continues to toss

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.