Using GitHub for repository backups

Just a note to myself since it’s convenient to have another set of off-site backups of some of my repositories…

I’ll use libDwm as an example here.

gh repo create libDwm --public
cd ~/tmp
git clone --mirror git@depot:libDwm
cd libDwm.git
git push --mirror git@github.com:dwmcrobb/libDwm

Leave a Reply