Because the system has restarted, of course, the local storage and SSH generated keys are lost. How can I store pull locally on GitHub?
Due to system reinstallation ,~ /. The ssh file will definitely disappear. In this case, you need to regenerate the public key and key,
Ssh-keygen-t rsa-C "your_email@example.com" Generating public/private rsa key pair.
Enter file in which to save the key (/home/XXX/. ssh/id_rsa ):
Created directory '/home/XXX/. ssh '.
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:
Your identification has been saved in/home/XXX/. ssh/id_rsa.
Your public key has been saved in/home/XXX/. ssh/id_rsa.pub.
The key fingerprint is:
79: 3c: 8c: e7: 3e: 57: 8a: 59: 36: 4d: 4c: 09: 59: d3: 8b: df your_email@example.com
The key's randomart image is:
+ -- [RSA 2048] ---- +
|. + Oo |
|. O... |
| O... |
| =. O. |
| S * o .. |
| +. + O. E |
|. = + |
|. + O |
|. O |
+ ----------------- +
Enter directly when you need to enter it. the email address in the command line is your mailbox on GitHub. In this way, an rsa key pair is generated. Copy the public key in id_rsa.pub to GitHub. Account Setting-> SSH Keys-> Add SSH Key. Finally, verify with the ssh-T git@github.com. Output
Hi XXX! You 've successfully authenticated, but GitHub does not provide shell access. That means the setting is successful.
In fact, these are irrelevant to the main question. Setting up SSH is only one way to access GitHub. We usually use the most http methods. Let's get down to the truth. When we need the repository on GitHub, let's create a new folder. First, git init initializes git, and then git pull https://github.com/xxx/snke.git. in this case, we will save the warehouse and operate it.
Recommended reading:
How to create an organization on GitHub
Usage in GitHub Linux
How to build a GitHub development environment using Eclipse in Windows
Source code for R language 3.0.1 has been submitted to GitHub
Import Maven project to Eclipse4.2 from GitHub