Last Updated: February 25, 2016
·
2.778K
· mdobson

Use a post-commit git hook to mirror your repo

Use this post-commit git hook with <remote> being a mirror repository of your code to backup your code to another repo with each commit. Super easy to setup and maintain.

#!/bin/sh
git push remote-name