A lightweight shell-based utility to replicate code from one private GitHub repo to another.
neuron-replicator/
├── config.json # Define source → destination repo pairs
├── run_all.sh # Driver script to sync all repo pairs
└── scripts/
└── replicator.sh # Core logic for pulling & pushing repos
gitjq(sudo apt install jqorbrew install jq)- Access to both source & destination repos via SSH or HTTPS
[
{
"source": "[email protected]:your-org/source-repo-1.git",
"destination": "[email protected]:your-org/destination-repo-1.git"
},
{
"source": "[email protected]:your-org/source-repo-2.git",
"destination": "[email protected]:your-org/destination-repo-2.git"
}
]chmod +x run_all.sh
./run_all.shEach sync will ask for confirmation before pushing.
- Syncs only the
mainbranch. - Uses
--forcepush to destination. - Temporary files are auto-cleaned after each run.