https://github.com/basemax/gpush
gpush is a simple, cross-platform Git helper script designed to streamline the process of staging, committing, and pushing changes to a Git repository. It supports Linux, macOS, and Windows (via Bash or Command Prompt), allowing developers to save time with a single command.
https://github.com/basemax/gpush
bash bat git git-commit git-push github sh shell
Last synced: 5 months ago
JSON representation
gpush is a simple, cross-platform Git helper script designed to streamline the process of staging, committing, and pushing changes to a Git repository. It supports Linux, macOS, and Windows (via Bash or Command Prompt), allowing developers to save time with a single command.
- Host: GitHub
- URL: https://github.com/basemax/gpush
- Owner: BaseMax
- License: mit
- Created: 2025-01-09T16:50:25.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T14:38:55.000Z (12 months ago)
- Last Synced: 2025-07-04T14:45:09.647Z (6 months ago)
- Topics: bash, bat, git, git-commit, git-push, github, sh, shell
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpush
A cross-platform Git helper script to streamline adding, committing, and pushing changes. Works on Linux, macOS, and Windows (via WSL or Git Bash).
> gpush is a simple, cross-platform Git helper script designed to streamline the process of staging, committing, and pushing changes to a Git repository. It supports Linux, macOS, and Windows (via Bash or Command Prompt), allowing developers to save time with a single command.
## Features
- Simplifies the `git add`, `git commit`, and `git push` process.
- Allows specifying a custom commit message.
- Defaults to "Update" if no message is provided.
## Requirements
- Git must be installed on your system.
- For Windows users:
- Use Git Bash or WSL for best compatibility if you want to use `gpush.sh`.
- Use `gpush.bat` script for Windows
## Installation
1. Clone the repository:
```bash
git clone https://github.com/BaseMax/gpush.git
cd gpush
```
2. Make the script executable:
```bash
chmod +x gpush.sh
```
3. Add the script to your PATH for global usage:
Linux/MacOS: Add the following line to your `.bashrc` or `.zshrc`:
```bash
alias gpush='/path/to/gpush.sh'
```
**Windows (Git Bash): Add an alias to your `.bash_profile`:**
```bash
alias gpush='/path/to/gpush.sh'
```
**Reload your terminal or run:**
```bash
source ~/.bashrc # Or ~/.zshrc for Zsh users
```
## Usage
**Run the script with a custom commit message:**
```bash
gpush "Your custom commit message"
```
**Run the script without a message to use the default:**
```bash
gpush
```
**View help information:**
```bash
gpush -h
```
### License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
© 2052 Max Base