error: cannot spawn xx\bin\TortoiseGitPlink.exe: No such file or directoryfatal: unable to fork

        The above error occurred when cloning from the git library. This is a problem with the configuration of the ssh client of the little turtle. What I encountered was that the file name of the installation directory may have been modified after installation and uninstallation several times. The correct way is to configure it again:

        (Git is not the installation directory of TortoiseGit)\usr\bin\ssh.exe

        Plus the Git and TortoiseGit usage process written by a big colleague before:

1. Install git

     Git-2.21.0-64-bit.exe
2. Install tortoisegit
    TortoiseGit-2.8.0.0-64bit.msi
3. Install tortoisegit Chinese interface
    TortoiseGit-LanguagePack-2.8.0.0-64bit-zh_CN.msi 
4. Use the bash program in git to open the command line
    Use ssh-keygen to generate a key pair, type ssh-keygen and press Enter all the way
5. Copy the contents of the ~/.ssh/id_rsa.pub file to Key on the SSH key page in the user settings in gitlab, and then click Add key.
    The id_rsa file is your own private key. In the future, you can use your own private key when uploading (you need to manually write a config file in the ~/.ssh directory).
    config file sample
        Host gitlab.e-planet.cn
            HostName gitlab.e-planet.cn
            User git
            IdentityFile /d/Userdata/Tools/sshkey/id_rsa (the path here should be changed according to the actual situation)
    If you use the windows graphics tool tortoisegit to upload, the private key in ppk format is used, which needs to be converted
    Open  C:\Program Files\TortoiseGit\bin\puttygen.exe and use the Load button to import id_rsa.
    Then click Save private key to save it in ppk format. The upload code using tortoisegit must be equipped with this ppk private key.

Guess you like

Origin blog.csdn.net/qq_23958061/article/details/120076779