Backups & restore points · Data Backup basics
Does Data Backup include my Git repositories?
Short answer: Your project's working files are backed up and versioned, but Git's internal object store is skipped by default, so a backup isn't a full copy of repository history. Keep pushing to your remote.
Partly. The files in your project — the code you see in Finder — are backed up and versioned. The internal object store inside each repository's hidden Git folder is skipped by default, so a backup is not a complete copy of the repository's history.
That's deliberate: that store is large, changes constantly, and already exists wherever you push. In practice: - Restoring from Data Backup gets your working files back, including uncommitted changes. - Your commit history should live on your Git remote — push regularly.
If you need a complete repository snapshot, push it, or make an archive of it and add that file to a backup set.