Answer the question
In order to leave comments, you need to log in
How to clone a git repository from a server (error)?
Installing Git for the first time on 2008 R2.
What was done:
1. Installed Git
2. Installed Bitvise SSH Server
3. Created a local user test on the server and added it to the administrator group
4. In the SSH server settings, the test user is allowed access to the Windows password
5. Connecting from workstations via SSH works, no problems no
6. A repository was created on the server via Git Gui along the path e:\Repositories\test
7. Then from the workstation I execute in git bash "git clone ssh://[email protected]:/e/Repositories/test
8. In response I get fatal: does not appear to be git repository, fatal: Could not read from remote repository
I have been reading the forums for 2 days, I don’t understand what the error is, the test user has rights to this folder.
Answer the question
In order to leave comments, you need to log in
The problem was solved, the Exec request prefix value was added to the SSH server settings equal to = cmd.exe /ce:\git\bin\sh.exe e:\git\cmd\githelper.sh (there must be a space after githelper.sh)
and on server in the e:\git\cmd folder create a githelper.sh file with the contents of $*
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question