Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.28 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.28 KB

gnit

Automate the Project inatialization process for any brand new project.

What it does on the fly (see no magic!):

  • Create and initialize git Project Repo locally
  • Create Project Repo at github
  • Add remote to local project.
  • Create README.md file
  • Add, commit & push initial commit.
  • Open local project directory in code.

Configurations

  1. Clone the repo git clone git@github.com:imkaka/gnit.git
  2. cd gnit
  3. pip install -r requirements.txt
  • Update TOKEN with your github Token or you can use your username and password as Github(username, password).get_user() in create.py and remove.py.

  • Update file path to your appropriate path. /home/<username>/path/to/file/.

  • Update .gnit.sh to put your github username.

Temporarily

$ source .gnit.sh

to make command gnit available on current shell session.

OR

Install the .gnit.sh as permanent command.

  • open .bashrc

    .bashrc file is located in your user directory

$ vi ~/.bashrc
  • at end of the file add
source <path to .gnit.sh>
Ex: source /home/imkaka/.gnit.sh

Usage:

  1. Initalize Project
$ gnit <project_name>
  1. Remove any project repo from github:
$ python remove.py <repo_name>