GitHub for Windows
This is the best method, highly recommended.
Download GitHub for Windows.
GitHub is developing a new desktop client that can be noticed here.
After you install GitHub for Windows, you can use client-side operations completely, without the need to lose extra commands. But when we need to work with other software, we still have to configure the Git shell.
Link GitHub via Git
The official tutorial is here.
Download Git here.
Open Git Bash When you're done installing.
Enter the following command in turn:
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh-agent -s
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
Copy key
clip < ~/.ssh/id_rsa.pub
Then go to your GitHub on the Web page and add SSH Key.
Next, test whether the above operation is successful:
Enter the command:ssh -T [email protected]
Will prompt you to:
1 2 3 |
the authenticity of host ' github . com (207.97 . 227.239 ) ' Can ' t be established. # RSA key fingerprint is 16 : 27 : Ac:a5:76 : 28 : 2 d:36 : 63 : 1 b:56 : 4 D:eb:df:a6:48 . # is sure you want to continue connecting (yes/no)? |
Enter yes
continue, and if the connection succeeds, you will receive a message similar to the following:
1 2 |
but does not # Provide shell access. |
After you do this, the Windows version of Hexo is ready to be uploaded properly.
Toss GitHub on Windows