I found it extremely tedious to repeat the same tasks over and over again to create and initialize a new repository.
To tackle this problem, I wrote a python script using Selenium to navigate through the GitHub page to create and initialize a new Repository for you.
Prerequisites:
-
Selenium
To install:
pip install selenium
-
Chrome Browser
-
Chrome Driver for Selenium
To install, visit: https://chromedriver.chromium.org/downloads and choose appropriate driver.
- Clone this Repo using the git clone command
git clone https://github.com/ferran9908/GitHub-Repo-Management.git/
-
Add your username and password in the Create.py script and change the path to your favorite directory.
-
Change the .gitscript.sh file to point to your directory and change the username to your GitHub username.
-
Rename file to Create.py
-
Copy both files to root directory.
-
Run the shell script first.
source ~/.gitscript.sh
-
DONE SETTING UP
- Clone this Repo using the git clone command
git clone https://github.com/ferran9908/GitHub-Repo-Management.git/
-
Add your username and password in the Create.py script and change the path to your favorite directory.
-
Change the .gitscript.sh file to point to your directory and change the username to your GitHub username.
-
Rename file to Create.py
-
Copy both files to root directory.
-
Run the shell script first.
source ~/.gitscript.sh
-
DONE SETTING UP
$ create [new Repo Name]