Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Backup

Clone all repos for an authenticated user to a local directory.

Prequisites

  • Install Git
  • Install Node.js
  • Run npm install in this directory
  • Create a personal access token (PAT) with the repo scope.
    • The repo scope is needed to fetch private repositories.

Usage

export GITHUB_TOKEN='<PAT>'
./gh-backup DESTINATION

Example

export GITHUB_TOKEN='<PAT>'
./gh-backup "$HOME/Code/gh-backup"

About

Clone all repos for an authenticated user to a local directory

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages