git-create-repo
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.mdfile 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
testfolder generated frombuild testto 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
testfolder generated frommake testto 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)
| File | Size | Uploaded | |
|---|---|---|---|
| git-create-repo-0.1.4.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|