hub-clone-tool
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Hub Clone Tool

Build

Demo

Clones all repositories a user has access to from GitHub.

Running

Either run with npx:

npx hub-clone-tool

Or install globally:

npm i -g hub-clone-tool

And run with: hct or hub-clone-tool.

Authentication

Authentication is (currently) by token, stored in the git settings.

To generate a token go to https://github.com/settings/tokens and create a personal access token with the following scopes:

  • repo
  • read:org

Store the generated token:

git config --global --add github.apikey [token here]

Root Code Folder

By default the tool works out of the current working directory.

To ensure you always sync to the same folder it is advised to set a code.home global git config variable:

git config --global --add code.home /home/paul/Documents/Code

Cloning

Cloning is only supported via SSH (not HTTP/S) as there is no means to prompt for credentials.

TODO

  • Show cloned/skipped stats on complete
    • option to view lists?

Readme

Keywords

Package Sidebar

Install

npm i hub-clone-tool

Weekly Downloads

4

Version

1.0.10

License

MIT

Unpacked Size

970 kB

Total Files

18

Last publish

Collaborators

  • paulridgway