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.mdfile - Add, commit & push
initial commit. - Open local project directory in
code.
- Clone the repo
git clone git@github.com:imkaka/gnit.git cd gnitpip install -r requirements.txt
-
Update
TOKENwith your github Token or you can use yourusernameandpasswordasGithub(username, password).get_user()increate.pyandremove.py. -
Update file path to your appropriate path.
/home/<username>/path/to/file/. -
Update
.gnit.shto put your github username.
$ source .gnit.sh
to make command gnit available on current shell session.
- 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- Initalize Project
$ gnit <project_name>
- Remove any project repo from github:
$ python remove.py <repo_name>