Creating a git repository on my server

I went to my server and created git repo:

(link: http://kb.mediatemple.net/questions/1594/Using+Git )

So, I created a folder:

blah.git

Then I did:

git --bare init

Then I got into the hooks folder and changed the permissions for post-update.

Now locally in windows I tried this:

git clone http://git.example.com/blah.git

and received this message:

initialized empty git in e: /gitTest/blah/.git/fatal: http://git.example.com/blah.git/info/refs not found, did you run git update-server-info on the server?

Well, I ran this command on the server. And it seems that the info / refs file exists, but finding the cat on it shows that it is empty.

Am I missing a step?

+3
3

, , . , .

+3

: , URL- git.example.com.

HTTP HTTPS? , SSL GIT_SSL_NO_VERIFY . http.sslVerify false git config.

-?

Git HTTP - : s-l-o-w, , , . , , info/refs, .

+1

A very simple solution to this problem is SCM-Manager. Take a look at https://bitbucket.org/sdorra/scm-manager

+1
source

Source: https://habr.com/ru/post/1723687/


All Articles