Mirroring Git Changes From One Server to Another Server

Introduction

Hello all, nowadays most of the development teams using GIT version control, some of you may have a requirement of mirroring your team's git changes from one server to another Git server. This article will help you to achieve the Git mirroring between one server to another server.

Business Case

I got one assignment wherein there will be 2 Git Servers, development will happen in one Git server and the changes should be synchronized to another Git server at regular intervals. But in my case, the complexity is both the servers are in different restricted network. So I have done the small experiment and it worked. And I am sharing the steps to you all in this article.

Introducing OneDev – new open source git server

About six years ago, we switched to git and developed this tool to serve our own needs as GitHub/GitLab does not have some pull request features we wanted at that time, such as squash support, rebase tracking, review of incremental changes, etc. During our daily usage, more practices are rolled into the product such as language-aware symbol search, source/diff annotation, and more. Now we feel that it is mature and hope that more can benefit from our practices. 

The tool is MIT-licensed and is available at here.