github-archive

command module
v0.0.0-...-14c9acc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 11 Imported by: 0

README

GitHub Archive

Backup GitHub repositories with ease.

Usage

Start by generating a GitHub Personal access token:

  1. Ensure you've verified your email address.

  2. Click your profile photo, then click Settings.

  3. In the left sidebar, click Developer settings.

  4. In the left sidebar, click Personal access tokens.

  5. Click Generate new token.

  6. Give your token a descriptive name.

  7. Select the Expiration via drop-down menu.

  8. Select the scopes, or permissions to grant.

  9. Click Generate token.

  10. Set the variable GITHUB_TOKEN= in ./.env.

    Warning: Treat your tokens like passwords
    and keep them secret. When working with the
    API, use tokens as environment variables
    instead of hardcoding them into your programs.
    

Update a ./repos.txt file with target repos:

github.com/example/dotfiles
github.com/example/personal-site
github.com/example/scripts

Run the program:

git clone https://github.com/wurde/github-archive
cd github-archive
./github-archive

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL