Skip to main content

git-create-repo

PyPI version License: MIT

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

Install

pip install git-create-repo

Or

python setup.py install

Also make sure you have git installed.

Usage

git_create.py [-h] [-p] [-s] [-n NAME]

Arguments

-h, --help            show this help message and exit
-p, --private         private repository
-s, --ssh             switching from https to ssh remote url. Using
                      git@github.com... instead of https://github.com...
-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

git_create

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 user.name. 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.

Note

  • This will create a default README.md 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.

Development

Windows

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.

Linux

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.

Future

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

Metadata

Release files for git-create-repo 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-create-repo 0.1.4
File Size Uploaded
git-create-repo-0.1.4.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-create-repo 0.1.4
File Interpreter ABI Platform
git_create_repo-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / git-create-repo-0.1.4.tar.gz

Download URL git-create-repo-0.1.4.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2939ffc2e22b79d428cef586d398a2eb89ef3f035ca25b893565a62ed8690241
BLAKE2b-256 checksum
How to use checksums
a8e3c1fcb1c1b15b155900ea3fcfc71585ce7b527a40e4d2e0ea1ab2b2a5f83f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / git_create_repo-0.1.4-py3-none-any.whl

Download URL git_create_repo-0.1.4-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75b34249180250805fce32715c053769791ed8975b977f3960ccf87405d92c4b
BLAKE2b-256 checksum
How to use checksums
1b6bb41a6836cc423530adbe723f8b7c491f872294ad1f7ee943fcaaec18f9ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page