HomeBlogDevelopment ToolsHow to properly mirror a git repository How to properly mirror a git repository When people talk about mirroring a git repository, usually we have a simple answer in mind: Just git clone the repo and you’re set!! However, what we want with mirroring is to replicate the state of an origin repository (or upstream repository). By state, we mean all the branches (including mas