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 [--private] [--name name] [--username username] [--ssh]
Make sure you are in the folder you want to create a repository in. Before running, cd
into your desired folder.
Create public repository
git_create
Create private repository
git_create --private
Adding Remote repository name
You can specify a different name for the remote repository with --name
. Otherwise the local repo name will be used.
Adding username
You can also specify your username with --username
. Otherwise the username from git config user.name
will be used.
Remote URL
By default, remotes are added by HTTPS. You can change this to SSH by adding --ssh
, assuming you have your SSH keys setup.
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.
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
Hashes for git_create_repo-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9228723cdbea04defb987445d7de0a155028759cbf6c5ab5e86552ceaf2fc095 |
|
MD5 | 1a46b0f08f54a069d954f0f19452df40 |
|
BLAKE2b-256 | dc81796eef32da9f2641618c029a9aca9175665cd13ba02c72c8cc92b2b52515 |