search

Home  >  Q&A  >  body text

Set up SSH git server on Windows, but the git operation command does not work.

After setting up a server to operate git on Windows, you can log in via ssh connection.
The following error occurs after using the git command. I have tried all the methods that should be tried.
See also the methods of foreign websites. But it doesn't work. I don't know if there is some problem that has not been solved.

git@joky /home/git/test.git
$ git init --bare
/usr/bin/git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

PHPzPHPz2795 days ago746

reply all(4)I'll reply

  • 黄舟

    黄舟2017-05-02 09:35:42

    Please provide more information, such as windows的版本, git服务器的软件和版本, gityour own software and version, otherwise I will not be able to reproduce your problem.

    Judging from the error message, it indicates that the dynamic library file is missing. It is guessed that it may be an installation problem of the git software. You can try git for windows.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:35:42

    The problem has been solved. It took more than two weeks. The git server on Windows is faster to build on Linux. .
    The solution is still solved by foreign blogs,

    This is how it was originally done, but due to the slash problem in the path, it should be the opposite on Windows, as in the following example
    gitpath='C:Gitbin'
    gitcorepath='C:Gitmingw32libexecgit-core'
    export PATH="/bin :$gitpath:$gitcorepath
    The result has always been tragic. However, I always knew that the problem was a path problem, but I just didn’t know how to configure it. Now that the problem is solved, I hope this problem will be helpful to everyone

    !

    reply
    0
  • PHPz

    PHPz2017-05-02 09:35:42

    It turns out that you stole this name and I couldn’t register it with git→_→

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:35:42

    Use Gogs, just use an exe software and run it

    reply
    0
  • Cancelreply