sahil-sagwekar2652 / GitHub-Automation-scripts

Bash and Python scripts to automate your Git & GitHub workflow. Made by using only standard python libraries.
https://sahil-sagwekar2652.github.io/GitHub-Automation-scripts/
MIT License
51 stars 63 forks source link
collaborate communityexchange github gssoc23 learn

GitHub Automation Scripts 🤖

This repository hosts scripts written in bash and python to automate common Git/GitHub workflows. Normally to connect a local repository to GitHub one has to go to the GitHub website, create a new respository and then add the new GitHub repo as a remote for your local repository. The create_repo script automates this process.

GitHub-Automation-scripts

Status



Table of Content

Tech 🖥️

My Skills

🏗️ Installation

Getting Started

To install and configure the project on your system locally, use the command mentioned below:

curl https://raw.githubusercontent.com/sahil-sagwekar2652/GitHub-Automation-scripts/main/.setup/install.sh | bash

Installation

Requirements:

Note!!! This script is written exclusively for Git Bash on Windows, you will have to modify it for other shells.

GITHUB_API_TOKEN = "Your GitHub personal access token"
USERNAME = "Your GitHub username"

Add the project path to the PATH variable (Recommended)

Run the following command in the project's base directory to add the scripts path to the PATH environment variable.

$ export PATH=$PATH":"$(pwd)"/scripts"

To permanently add the scripts path to the PATH variable, run the below command in the project's root directory. (This file is located in your home directory)

Make sure to backup the .bash_profile file elsewhere before making any changes to it.

$ echo 'export PATH=$PATH''":'"$(pwd)"'/scripts''"' >> ~/.bash_profile

OR

Run the following commands in the project folder to add the scripts to your bin directory

$ cp -r /scripts/* /usr/bin/

How to use

After the installation is complete then the 'create_repo' command should execute in any directory.

👨‍💻 Development

🪪 License

License

This project is licensed under the MIT license. For more information, please refer to the LICENSE file.

We hope you find these automation scripts helpful in streamlining your Git and GitHub workflows

Contributors

<p align="center"