Socket
Socket
Sign inDemoInstall

create-remote-repo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-remote-repo

This command line tool automates the process of initializing a local Git repository, creating a remote GitHub repository via the GitHub API, optionally adding a .gitignore file, staging changes, committing, and performing the initial push to the remote repository.


Maintainers
1

GitHub Repo Automation Tool

This command line tool automates the process of initializing a local Git repository, creating a remote GitHub repository via the GitHub API, optionally adding a .gitignore file, staging changes, committing, and performing the initial push to the remote repository.

Features

  • Initialize a local Git repository.
  • Create a remote repository on GitHub.
  • Optionally add a .gitignore file.
  • Stage changes.
  • Commit changes.
  • Push the initial commit to the remote repository.

Requirements

  • Python 3.x
  • Git
  • GitHub account and authorization token

Installation

Usage

python create-remote-repo -rn <repo-name> -gu <github-username> -t <github-token> -d <working-directory> [-i <include-gitignore>] [-p <private>]

Example

python create-remote-repo -rn my-new-repo -gu myusername -t mytoken -d /path/to/working/directory -i y -p y

This command will:

  1. Initialize a Git repository in the specified local working directory.
  2. Create a remote repository named my-new-repo under the GitHub account myusername.
  3. Add a .gitignore file to the repository.
  4. Stage all changes.
  5. Commit the changes.
  6. Push the initial commit to the private remote repository.

CLI Arguments

ArgumentDescriptionRequiredDefault Value
-rn, --repo-nameThe name of the remote repository you want to create.YesNone
-gu, --github-usernameThe username of your GitHub account.Noglobal_github_username
-t, --github-tokenYour GitHub authorization token.Noglobal_github_token
-d, --working-directoryThe absolute path to the local working directory where the repository should be initialized.YesNone
-i, --include-gitignoreEnter y if you want to add a .gitignore file to your repository, otherwise enter n.Non
-p, --privateEnter y if you want to make the remote repository private, otherwise enter n.Non

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Created and maintained by Kim Chung.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc