Git repository repository on local machine and GitHub

4

Is there a way to replicate a particular repository between GitHub and a local machine on which the team uses?

In case of failure of the GitHub servers the team uses the local server and as soon as the GitHub servers come back on, the latest changes to GitHub will be performed in an automated manner and vice versa.

Another example, when the local server is in maintenance the team would work directly with GitHub and when it comes back the same update the sources that are in GitHub. Is there a way to do this?

    
asked by anonymous 23.09.2015 / 04:33

1 answer

2

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

You can establish a stream where everyone on the team uses the local server to centralize the changes in the repository. This server will sync with Github. This can obviously be done both ways. If someone upgrades directly to Github for some reason, the local central repository can receive updates from Github. You even have to automate this by the site API and your server settings.

Some questions that may help:

23.09.2015 / 04:52