Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Contributors

Languages