Skip to content

Command to quickly create a new GitHub repository and attach to a git-enabled directory on your local machine.

Notifications You must be signed in to change notification settings

camball/gh-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

New GitHub Repo

Quickly create new GitHub repositories and attach them to a git-enabled directory on your local computer.

gh-setup # set up current directory
gh-setup path-to-directory-to-set-up/

Install

  1. Export the GITHUB_TOKEN environment variable on shell startup (in your .zshrc, .bashrc, etc.)

    echo "export GITHUB_TOKEN=<your_github_token>" >> ~/.zshrc
  2. Build with make to place the command on your path (in /usr/local/bin)

    make

Dependencies

  1. This script works best when you have Python3 installed. If you don't, the script provides an option for you to manually go to GitHub and create the repo yourself, then come back to the script, yet this essentially defeats the convenience of this script.
  2. The script uses PyGithub to create a GitHub repository via GitHub's API. gh-setup attempts to install PyGithub if you don't have it already.

About

Command to quickly create a new GitHub repository and attach to a git-enabled directory on your local machine.

Topics

Resources

Stars

Watchers

Forks