https://github.com/gavinlyonsrepo/gitautorun
Bash Script to help with automation of commonly used git operations
https://github.com/gavinlyonsrepo/gitautorun
automated automation bash bash-script git shell-script shell-scripting
Last synced: about 1 month ago
JSON representation
Bash Script to help with automation of commonly used git operations
- Host: GitHub
- URL: https://github.com/gavinlyonsrepo/gitautorun
- Owner: gavinlyonsrepo
- License: mit
- Created: 2023-12-12T16:04:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T11:19:55.000Z (over 1 year ago)
- Last Synced: 2025-02-28T23:46:40.583Z (over 1 year ago)
- Topics: automated, automation, bash, bash-script, git, shell-script, shell-scripting
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
[](https://gavinlyonsrepo.github.io/) [](https://gavinlyonsrepo.github.io//feed.xml) [](https://www.paypal.com/paypalme/whitelight976)
# gitAutoRun
## Overview
* Name: gitAutoRun
* Description: Bash Script to help with automation of commonly used git operations.
* Version: 0.1.0 Beta
* License : MIT
## Table of contents
* [Installation](#installation)
* [Usage](#usage)
* [Exit codes](#exit-codes)
## Installation
Download from github using curl and zip and then Install locally by makefile on Linux OS. uninstall option also provided.
```sh
cd ~/Downloads
curl -L -O https://github.com/gavinlyonsrepo/gitAutoRun/archive/main.zip
unzip main.zip
cd gitAutoRun-main
make install
```
## Usage
Type in terminal
```sh
gitautorun [options flags] [Commit message] [Branch name]
```
| Option flag | Description |
| --- | ---|
| -v -- version | Print version number and exit |
| -h --help | Print help info and exit |
| -a --auto | Automatically fill in Commit and branch name |
| -m --manual | Take Commit message and branch name from command line arguments |
| -c --commit | Take Commit msg from cmd line arguments & Automatically fill in branch name |
| -s --select | Take Commit msg from menu selection & Automatically fill in branch name |
## Exit codes
| Code | Description |
| --- | ---|
| 0 | All went well, no error |
| 2 | Error Missing Arguments |
| 3 | Error Commit message missing |
| 4 | Error Branch name missing |
| 5 | Error with git add command |
| 6 | Error with git commit command |
| 7 | Error with git push command |
| 8 | Error Unknown argument |
| 9 | Error git not installed |
| 10 | Error User exited Commit message selection |
| 11 | Error Current directory is not a Git Repository |