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
.
- Clone the repo
git clone [email protected]:imkaka/gnit.git
cd gnit
pip install -r requirements.txt
-
Update
TOKEN
with your github Token or you can use yourusername
andpassword
asGithub(username, password).get_user()
increate.py
andremove.py
. -
Update file path to your appropriate path.
/home/<username>/path/to/file/
. -
Update
.gnit.sh
to 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>