From 421731f52edaec35e53711b6f72a31e250defb2b Mon Sep 17 00:00:00 2001 From: "Ethan J. Brown" Date: Sun, 2 Jun 2013 01:04:59 -0300 Subject: [PATCH] docs: Backup-GitHubRepositories --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 0f9208c..538339a 100644 --- a/README.md +++ b/README.md @@ -360,6 +360,28 @@ Will list the public events for another user Get-GitHubEvents -User Iristyle ``` +### Backup-GitHubRepositories + +This will clone every repository for the specified user or organization, and will +additionally clone each fork, as determined by open pull requests. Does not backup +issues or wiki (yet). + +The default parameterless version will use the `GITHUB_USERNAME` environment variable +to get the list of repos where the user is an owner or a member, and will backup each +one locally to disk + +```powershell +Backup-GitHubRepositories +``` + +This will find all the public repos for the github organization, and will clone each one +locally + +```powershell +Backup-GitHubRepositories -Organization github +``` + + ## Additional Git helper commands These commands do not use GitHub service, but are common enough for inclusion.