Recently, SVN switched to git for development.CodeManagement tools. Because it is troublesome to set up git on a local Windows Server, free GitHub is used as the server. Of course, the free version of GitHub must be open-source.Source codeYou must pay.
To use GitHub, you must first use the command in the GIT bash command line tool to generate the public key and private key, and then upload the public key to GitHub to upload the code locally. In this way, you need to use the command line to complete all operations, but if you have a headache with memory commands, you can use tortoisegit to simplify the operation. When using tortoisegit, you must specify the path of the local private key. However, because the format of the private key used by tortoisegit is different from the format generated by using the GIT bash command, tortoisegit cannot be used directly.
The method I used is as follows:
1. The GIT bash command line tool generates a set of public and private keys.
2. Use puttygen tool of tortoisegit to generate a set of public and private keys.
3. Extract the format of the public key generated by git bash, and upload it to GitHub in combination with the public key ciphertext generated by puttygen.
4. Set the private key file (. PPK) generated by tortoisegit using puttygen ).
We hereby make a record to avoid forgetting.