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
Written by Matthew Dobson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Devops
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#