41 Exporting Your Repository

Sharing your repository with other developers is a matter of giving them access to read your public repository, but sometimes you need to give access to content you’re tracking to people who don’t use Git: clients, customers, or business partners of a less tech-savvy variety. You can export the contents of your repository at a particular point to share with these people using the git archive command.

It’s important to remember you are exporting only one point in the history of your repository, not the entire history. Some people look at an export as a backup of their repository. This is not the correct way to do a backup in Git. Each clone of your repository has the entire history, so push your repository ...

Get Pragmatic Guide to Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.