Hello, I wanted to experiment at home (for educational purposes) work with the git server. To do this, created a virtual machine (using VirtualBox) as a server. On a virtual machine, a network bridge is used as a network adapter. As a program for the implementation of the git server using scm manager .

The goal was to create a remote repository on a virtual machine and send commits to the server from the main PC, i.e. on the virtual machine.

OS: on the main PC is windows 7, 64 bit;

on VM (git server) windows 7, 32 bit.

The problem occurred when I try to send commits or to clone the repository from the main PC to the virtual I get an error. Although from the browser of the main PC to the server I go quietly without any errors (link: http://diserver:8080/scm ).

If (on the main PC) in git Bash I write git clone http://diserver:8080/scm/git/android5 then a fatal: repository 'http://diserver:8080/scm/git/android5/' not found error occurs fatal: repository 'http://diserver:8080/scm/git/android5/' not found .

If for example opening git bash on a virtual PC and writing

 git clone http://localhost:8080/scm/git/android5 

then everything works without problems.

Please tell me what could be the problem?

================================================= =

The full history of typing the command in the main PC in git bash:

 $ git clone http://diserver:8080/scm/git/android5 Cloning into 'android5'... fatal: repository 'http://diserver:8080/scm/git/android5/' not found 
  • one
    Maybe with the rights of what? For training purposes it is possible to register on a githab - Naumov
  • I tried to tick the scm manager public for the repository, the same situation. Generally, when I enter the scm manager through the browser of the main PC, it asks for the username and password for the scm manager. When I type a command in the main PC while git clone ' diserver: 8080 / scm / git / android5 no menu allows you to enter a password and the username does not pop up, well, the error then pops up as I wrote above. - foxis
  • one
    A small question, when you do clone on a local machine, is there a slash at the end of the address? And then the request is not specified, but in it. Try without it. - Alexandr Blinov
  • one
    @foxis do you have ssh access on the VM? Try using ssh protocol to clone. - Nick Volynkin
  • one
    and if in the repository address instead of the name write an ip address, will it work? - KoVadim

1 answer 1

It turned out that the windows firewall was responsible for everything, which blocked any external connections from the local PC via git. After a complete shutdown of the firewall, everything worked right away.

Thank you all for your help, the problem is solved. :)

  • one
    Probably it would be enough to open the desired port. - Nick Volynkin
  • @NickVolynkin, thanks for the hint, but how to do it, where you can read about it? - foxis
  • one
    I do not understand the configuration of Windows Firewall, look for it. The port is probably 433rd. - Nick Volynkin
  • @NickVolynkin, well, I will look, thanks for the hint. - foxis