Skip to content

Shubham185y/GitHub-Automation-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Automation Scripts

This repository hosts scripts written in bash script 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.

Tech

Python Shell Script GitHub

Installation

Requirements:
  • This script requires these python packages requirements.txt
  • Git Bash installed on your computer.
  • GitHub personal access token. (Go to your GitHub profile -> Settings -> Developer settings -> Personal Access Tokens -> Create new token with all the repo permissions)

Install the python dependencies by running the following commands in the project directory.

pip install -r requirements. txt

Now run these commands to configure the script.

./installer <GITHUB_ACCESS_TOKEN>
source ~/.bash_profile

How to use

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

  • Run the command with a '-h' flag to see the help menu
create_repo -h
  • Sample usage
create_repo <PATH_NAME> <REPO_NAME>
  • <PATH_NAME> is the path where you want to create the local repository and <REPO_NAME> is the name for your repo
  • Example:
create_repo . test-repo

The result is a local respository is created with a connected remote repository automatically!

Development

Want to contribute? Great! Read this first -> Contributor's Guide

License

Licence

About

Bash and Python scripts to automate your Git & GitHub workflow :)

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.4%
  • Shell 21.6%