Skip to content

Instantly share code, notes, and snippets.

View maniksurtani's full-sized avatar

Manik Surtani maniksurtani

View GitHub Profile
Place 1:
Queen: Aslak+Wife
Queen: Lincoln III
Twin, Cot1, Cot2 - To be decided by Dan, ALR, (open slot...Wesley Hayles?)
Place 2:
Queen: Emmanuel
Queen: Manik
#!/bin/bash
#Synchronize all changes (incl new branches and tags) from repo A to repo B, where B is a bare repo.
#B must be an bare clone of A (initial setup)
#A' must be a clone of A where origin points to A
#There are probably more optimized ways to do this. the advantage of this method is that no branch is deleted from the backup repo
#so the source repo is not 100% trusted
#make sure to define BACKUP_REPO and INTERMEDIARY_REPO
#define where repo B resides (Git repo URL) eg file://${HOME}/path/to/repo.git