After the system is reinstalled, how can I repeat my own GitHub repository?

Source: Internet
Author: User

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

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.