Global configuration
- git config--global user.name "account name"
- git config--global use r.email ' account mailbox '
- to generate SSH, command: ssh-keygen-t RSA
However, the SSH command is not available on the window terminal, only open git-bash.exe operation under the GIT installation directory, the steps are as follows:
Git installation directory,
Find Git-bash.exe
Input:ssh-keygen-t rsa-c "[email protected]"
Administrator/
$ ssh-keygen-t rsa-c "[email protected]"
Generating public/private RSA key pair.
Enter file in which to save the key (/C/USERS/ADMINISTRATOR/.SSH/ID_RSA): Here you need to enter a password to connect to GitHub need to use
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Passphrases does not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification have been saved in /c/users/administrator/.ssh/id_rsa.
Your public key had been saved in /c/users/administrator/.ssh/id_rsa.pub.
Then create an SSH on your github
Then Git-bush.exe, enter the following command:
# SSH [email protected]
Then, Enter passphrase for key '/c/users/administrator/.ssh/id_rsa ' will appear:
I asked you to enter the password you entered when you just generated sshkey.
The following occurs, indicating a successful connection.
git--config sublime text git under window