Skip to content

Clone all repos for an authenticated user to a local directory

License

Notifications You must be signed in to change notification settings

brcrista/github-backup

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

License

Stars

Watchers

Forks