1. Run the command: git pull –progress –no-rebase -v “origin”. An error occurs, as shown in Figure 1
fatal: unable to access ‘https://github.com/shuijingwan/yii2-starter-kit.git/’: Unknown SSL protocol error in connection to github.com:443

2. I decided to use SSH for the connection. Since both Git Bash and TortoiseGit might be used, I used the PuTTYgen tool included with TortoiseGit to generate the keys, as shown in Figure 2.

3. After opening it, click the Generate button. During the generation process, you need to keep moving the mouse within the key box to generate some random data, as shown in Figure 3.

4. Add the generated public key to GitHub, as shown in Figure 4.

5. The list of public keys added on GitHub is shown in Figure 5.

6. Select Save private key. The following dialog box pops up; select Yes, as shown in Figure 6.

7. Save the private key supported by TortoiseGit to C:\Users\Administrator\.ssh\private.ppk, as shown in Figure 7.

8. Select Save public key, and save the public key supported by TortoiseGit to C:\Users\Administrator\.ssh\authorized_keys (no extension), as shown in Figure 8.

9. Run the Pageant program from the TortoiseGit software package, as shown in Figure 9.

10. Right-click the icon in the bottom right corner (notification area) of the Windows desktop to bring up the following menu, as shown in Figure 10.

11. Select the Add Key menu item. The Select Private Key File dialog box appears. Select the previously generated corresponding private key file (.ppk) to complete the configuration, as shown in Figure 11.

12. The SSH connection for TortoiseGit is now configured. Next, I will continue to configure the connection for Git Bash.
13. I now have the PuTTY private key supported by TortoiseGit. To use it in Git Bash, I need an OpenSSH private key, which simply requires a conversion.
14. Click the menu Conversions->Export OpenSSH Key, as shown in Figure 12.

15. Save the private key supported by Git Bash to C:\Users\Administrator\.ssh\id_rsa, as shown in Figure 13.

16. To test the support in TortoiseGit, change the origin URL to: git@github.com:shuijingwan/yii2-starter-kit.git, and save it, as shown in Figure 14.

17. Perform a pull operation in TortoiseGit, as shown in Figure 15.

18. The TortoiseGit pull is successful, as shown in Figure 16.

19. In Git Bash, run git pull from github.com again. The pull is successful, as shown in Figure 17.

