L
L
LEKAPb2015-07-31 13:19:28
git
LEKAPb, 2015-07-31 13:19:28

How to create a local mirror of a remote GIT repository?

In general, the following task:
There is a local GIT server (GITBLIT) in the local network.
There is a remote GIT repository (example https://github.com/mono/mono ).
I want to have a mirror copy of this repository with all branches on my local server with the ability to update from a remote repository.
As a result, it should work like this:
1. Local clients take a copy from the local server.
2. The local server does a Pull once a day and receives updates from a remote repository (a task in Cron for example)
3. Local clients do a Pull and receive updates.
Is it actually possible to implement this?
I tried adding the Remote repository, but as I understand it, this is just a link to the remote repository.
Maybe someone has a solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2015-07-31
@LEKAPb

To make a mirror run on the local server git clone --mirror git://github.com/mono/mono.git
To update -- git fetch in the mono.git directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question