1. Create your own project warehouse on GitHub
After logging in, on the GitHub home page, click "New Repository" in the bottom right corner
Fill in the project information:
Project name: Project
Description : Remark can not fill in;
Click "CreateRepository" and now complete the creation of a project on GitHub .
Description: Only one item can be stored (or called) in a warehouse.
2. Upload project mode (client or online web version);
I chose the client way:
After installation
Double-click to open (enter Git help git to view related commands)
3. Create a key (that is , a local git project to connect to a remote github )
Enter $ CD ~/. SSH if prompt no such file or directory without tube
No such file or directory will be used for the first time;
If it is not the first time you need to clean up the SSH key;
$ mkdir Key_backup
$ CP id_rsa* Key_backup
$ RM id_rsa*
4. Generate Xinmi key ssh-keygen–t rsa–c "email address"
Note: You can enter your e-mail address here. You will be prompted to enter a password in the carriage return, which will be used when you submit the project.
If it is empty, you do not have to enter it when submitting the project. This setting is to prevent others from submitting content to your project.
Add the generated key
Add the password for the. pub above to SSH keys;
Click Add Key
5. Click Email to activate
run the command in git : $ ssh–t git@github.com
Enter Yes and click Enter if prompted :Hi defnngj You ' ve successfully authenticated, but GitHub does not provide shell access. c2> means that your connection was successful;
If it appears
SSH Key expires try to re-create SSH key
GitHub Client Create Warehouse