1

I have a remote server that has my original instance of Omeka:

Now, I downloaded all code in local, and created a Git Repo.

Now, as user will add content directly on my remote server, I want to commit directly remotely, and then download changes in local.

Thing is I have no git repository in my distant server.

So, I tried to copy local .git folder to distant server, but now, I get:

error: bad index file sha1 signature
fatal: index file corrupt

How should I do it???

Juliatzin
  • 18,455
  • 40
  • 166
  • 325

1 Answers1

1

To serve git repo from remote, you will have to create a bare repository on the server and serve that folder via the https/ssh protocol.

Then clone the remote repo via the https/ssh url onto your local server. Then you will be able to pull any commits made on the remote server.

You can find a nice tutorial here

Community
  • 1
  • 1
Harish Ved
  • 560
  • 4
  • 17
  • 1
    Naming the remote server «origin» would also be nice, as it is the name GIT assigns to the central servers when built the first. – Adirio Dec 19 '16 at 06:21