Skip to content

Instantly share code, notes, and snippets.

@toashd
Created August 24, 2015 13:35
Show Gist options
  • Save toashd/c994503ce1a57516f88b to your computer and use it in GitHub Desktop.
Save toashd/c994503ce1a57516f88b to your computer and use it in GitHub Desktop.
Export github issues to json
curl -u ':uname' 'https://api.github.com/repos/:org/:repo/issues' > issues.json
@toashd
Copy link
Author

toashd commented Oct 8, 2015

Together with git clone --mirror [email protected]/:org/:repo.git a useful combination to backup a github repository.

@matthiasbeyer
Copy link

Note: This does not backup closed issues.

@gerardolima
Copy link

Please, note that if you have a private repository and your account uses two factor authentication, using basic authentication (username/password) is not enough; a more convenient way to access the API should be creating a personal (and temporary!!) token in your personal settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment