ferran9908 / GitHub-Repo-Automation

Automate GitHub Repository Initialization using a simple python script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automate Initializing a new Repository on GitHub

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:

  1. Selenium

    To install: pip install selenium

  2. Chrome Browser

  3. Chrome Driver for Selenium

    To install, visit: https://chromedriver.chromium.org/downloads and choose appropriate driver.

To get started [CreateWithSelenium.py]

  1. Clone this Repo using the git clone command
git clone https://github.com/ferran9908/GitHub-Repo-Management.git/
  1. Add your username and password in the Create.py script and change the path to your favorite directory.

  2. Change the .gitscript.sh file to point to your directory and change the username to your GitHub username.

  3. Rename file to Create.py

  4. Copy both files to root directory.

  5. Run the shell script first.

    source ~/.gitscript.sh

  6. DONE SETTING UP

To get started [CreateWithGitHubAPI.py]

  1. Clone this Repo using the git clone command
git clone https://github.com/ferran9908/GitHub-Repo-Management.git/
  1. Add your username and password in the Create.py script and change the path to your favorite directory.

  2. Change the .gitscript.sh file to point to your directory and change the username to your GitHub username.

  3. Rename file to Create.py

  4. Copy both files to root directory.

  5. Run the shell script first.

    source ~/.gitscript.sh

  6. DONE SETTING UP

Usage

$ create [new Repo Name]

About

Automate GitHub Repository Initialization using a simple python script


Languages

Language:Python 75.2%Language:Shell 24.8%