Skip to main content

Creates local and remote repository from command line

Project description


PyPI version License: MIT

Creates local and remote git repository from command line. This tool is intended for Python 3.


pip install git-create-repo


python install

Also make sure you have git installed.

Usage [-h] [-p] [-s] [-n NAME]


-h, --help            show this help message and exit
-p, --private         private repository
-s, --ssh             switching from https to ssh remote url. Using
             instead of
-n NAME, --name NAME  name of remote repository

Make sure you cd into the correct folder you want to create a repository in.

Create public repository


Create private repository

git_create -p

Adding Remote repository name

You can specify a different name for the remote repository with -n. Otherwise the local repo name will be used.

Switching Remote URL

By default, remotes are added by HTTPS. You can change this to SSH by adding -s, assuming you have your SSH keys setup.

Github Username

The tool simply fetches the username from git config If you don't have this set, the tool with prompt you to enter it beforehand.

Next steps

  • You will be prompted to enter your password and a description. The description can be skipped by simply pressing enter. If your password is incorrect, you will be prompted again.

  • If the above is successful, you will now have a repository created on your Github account.


  • This will create a default file including the name of your repository if none exist.
  • It is also suggested to create your own .gitignore, so you can ignore what files you don't want commited beforehand. All files get committed otherwise.



Installing Development Dependencies:

  • Run build install

Testing Script

  • Use test folder generated from build test to run script. This is to ensure your actual git repository is not compromised.

The other build targets are used to upload to Pypi.


Installing Development Dependencies

  • Ensure you have GNU Make installed. You can install this with sudo apt-get install make.

  • To install development dependences, run make install.

Testing Script

  • Use test folder generated from make test to run script. This is to ensure your actual git repository is not compromised.

The other build targets are used to upload to Pypi.


  • Other features that can make this tool more usable.
  • Please let me know in the issues tab.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-create-repo-0.1.4.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

git_create_repo-0.1.4-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page