A bash script that calls the python file that automates the entire process of making a new github repository and doing the initial commit from the local device.
- A terminal that can run linux commands (otherwise it wont work)
- Python installed. Also install selenium package by using
pip install selenium
- First argument is the Repo name. Enter proper repo name, ie. No whitespaces and only underscore and so on...
- Second argument is the path to the folder where you want to create this project in your local machine. Eg.
D:/Projects/new_project
The terminal will exit of any of the parameters are not provided.
-
Clone the repo to a folder
-
Move the
gitrepo.sh
shell file from the current folder and put it in your user directory (This is to make the shell file accessible on start of terminal) -
Make the following changes in the shell script:
- In
GIT_PATH
variable , add your github userID - Uncomment the python file excecution line and add the path of the makeRepo.py file
- In
-
In the
makeRepo.py
file, add your github username and password
- Open the terminal from anywhere on system.
- enter command
. gitrepo.sh
orsource ~/gitrepo.sh
- enter
create repo_name_here file_path_here