I have a problem with own git server on which I only use the git-http-backend. I discover that after I create the empty repository on the server with this:
git init --bare
I can clone the empty repo on any host with any user,
git clone https://example.com/nameOfRepo.git
but after I make a change the repository is only working with one host.
git add filename
git commit -m "message"
git push
In conclusion after change is made the repository is assigned to one host. I can't clone the repository to another host. Do You have idea what is wrong?
EDIT:
On server I do:
mkdir repoName.git
cd repoName.git
git init --bare
On first host I make:
git clone https://example.com/repoName.git
touch filename.txt
git add filename
git commit -m "Initial commit"
git push
After that I try to clone repo to second machine with that:
git clone https://example.com/repoName.git
and this failed with this:
fatal: The remote end hung up unexpectedly
After that I try to clone repo on first machine but to another directory:
mkdir repoNameNew.git
cd repoNameNew.git
git clone https://example.com/repoName.git
but this is failed too with
fatal: The remote end hung up unexpectedly