Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
/ gh-setup Public archive

A GitHub CLI extension to setup new repositories

License

Notifications You must be signed in to change notification settings

twelvelabs/gh-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-setup

✨ A GitHub (gh) CLI extension to setup new repositories.

Installation

  1. Install the gh CLI - see the installation

    Installation requires a minimum version (2.0.0) of the the GitHub CLI that supports extensions.

  2. Install this extension:

    gh extension install twelvelabs/gh-setup

Usage

Navigate to the repo you would like to setup and run:

gh setup

This will:

  • Ensure your local repo has been created:
    • git init
    • git add .
    • git commit -m "Initial commit"
  • Ensure your remote repo has been created:
    • gh repo create --source=. --push

The extension was designed to be run directly after scaffolding out a new project, but is idempotent (so is safe to run at any time). Each step is only run if needed and prompts before taking action.

Development

Local development requires Go 1.19:

brew install go
# Or install manually: https://go.dev/doc/install

Then:

git clone git@github.com:twelvelabs/gh-setup.git
cd ./gh-setup

make setup
make build
make install

# For more tasks
make help