Creates local and remote repository from command line
Project description
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.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 frombuild 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 frommake 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git-create-repo-0.1.4.tar.gz
.
File metadata
- Download URL: git-create-repo-0.1.4.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2939ffc2e22b79d428cef586d398a2eb89ef3f035ca25b893565a62ed8690241 |
|
MD5 | e703dcb97e43615d6f8a9da42cd19688 |
|
BLAKE2b-256 | a8e3c1fcb1c1b15b155900ea3fcfc71585ce7b527a40e4d2e0ea1ab2b2a5f83f |
File details
Details for the file git_create_repo-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: git_create_repo-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b34249180250805fce32715c053769791ed8975b977f3960ccf87405d92c4b |
|
MD5 | 621326512f076c6a4353a134f77723f9 |
|
BLAKE2b-256 | 1b6bb41a6836cc423530adbe723f8b7c491f872294ad1f7ee943fcaaec18f9ee |