Skip to content

Automate GitHub Repository Initialization using a simple python script

Notifications You must be signed in to change notification settings

ferran9908/GitHub-Repo-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

Releases

No releases published

Packages

No packages published