Juliatzin
Juliatzin

Reputation: 19695

Connect remote server to git

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???

Upvotes: 1

Views: 670

Answers (1)

Harish Ved
Harish Ved

Reputation: 570

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

Upvotes: 1

Related Questions