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:
- Defaults write Com.apple.finder Appleshowallfiles-bool true
- 2. Killall Finder
- 3. go to personal ->.ssh folder open
- Want to upload a project that has been down on GitHub to my GitHub, but it's not successful.
- 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