Backing up your git repos 2021-01-27 / By Loess / In Everything / Leave Comment git clone --mirror path/to/original path/to/dest/.git cd path/to/dest git config --bool core.bare false git checkout anybranch https://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-in-git