3 ms·
Backups, backups, backups, BACKUPS. Don't rely on GitHub being your only source location. Git is a DVCS, meaning you don't have to have a single upstream. Make
by urda 9y ago
Backups, backups, backups, BACKUPS.
Don't rely on GitHub being your only source location. Git is a DVCS, meaning you don't have to have a single upstream. Make sure you are pushing / mirroring to a third party (GitLab, Bitbucket, personal Git Server, etc)
- kardos 9y agoDo you know a good way to automate that?
- philipwhiuk 9y ago$ vi /usr/bin/gpa #!/bin/bash git push github $? git push bitbucket $? $ gpa
- fenwick67 9y agoa crontab script that does `git fetch` would be enough
- urda 9y agoYou could have a cron job automatically sync repos, but right now I have my own local copies and I use GitLab's "Repository mirroring" [1] which has worked really well for me! [1] https://docs.gitlab.com/ee/workflow/repository_mirroring.html