2

Currently, I'm using XAMPP as my web server.

Now, I want to makes a git repository in my web server.

As a result, I want to run this command line perfectly:

$ git-config remote.upload.url http://paultester@<servername>/new-repo.git/
$ git push upload master

I followed this guideline: http://www.diggin-data.de/dd-cms/post/37/Installing+Git+http-backend+on+Windows+with+XAMPP

But I got this error

fatal: unable to access 'http://paultester@<servername>/new-repo.git/': Maximum (20) redirects followed

How can I fix this?

2
  • git-config remote.upload.url http://… should be written as git remote add upload http://… or git remote set-url upload http://… if the remote exists. Commented Nov 18, 2019 at 10:49
  • In my case, I guess the command run OK because .git/config file has [remote "upload"] url = http://paultester@<servername>/new-repo.git/ Commented Nov 19, 2019 at 1:28

1 Answer 1

0

Check if you can set on the server side curl-setopt, as in here

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

An alternative to XAMPP server would be one binary (no configuration) with Gitea: nothing to install but the binary, and you can do HTTP pushes.

Sign up to request clarification or add additional context in comments.

2 Comments

Gitea is awesome! Many thanks for your recommend. On the other hand, I cannot configure curl-setopt on the server side. I made some research but I found nothing.
@Linherest Did you test Gitea? You might not need to configure curl if you do use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.