Git repository replication on local machine and Github

Asked

Viewed 190 times

4

There is a way to replicate a particular repository between Github and a local machine the team uses?

In case of failure of Github servers the team uses the local server and as soon as Github servers return to operate the last changes to Github will be executed in an automated way and vice versa.

Another example, when the local server is serviced the team would work directly with Github and when it comes back update the sources that are on Github. There’s a way to do it?

1 answer

2


Git has a decentralized feature just to be able to do this kind of organization.

You can establish a flow where everyone on the team uses the local server to centralize changes in the repository. This server will sync with Github. Obviously this can be done both ways. If someone updates directly to Github for any reason, the local central repository may receive updates from Github. You can even automate this via the website API and your server settings.

Some questions that may help:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.