← Back to context

Comment by int_19h

4 years ago

Why shouldn't the repo be treated as a backup, if it is set up to be backed up? And who doesn't back up their work repos?

It is a backup but it's a partial backup that excludes:

1. everything else on your system (potentially - a lot of stuff depending on your workflow

2. everything you've .gitignored (you 100% sure that's all ok?)

3. changes not yet pushed

4. branches that don't exist on remote

5. git stuff that's invaluable for disaster recovery

6. git stashes

and probably other things i haven't thought of.

Backups should be:

1. Offsite

2. Automated

3. Recent and up to date

4. Comprehensive

Git workflows usually only handle point 1