Skip to content
/ gpush Public

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.

License

Notifications You must be signed in to change notification settings

BaseMax/gpush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/BaseMax/gpush.git
    cd gpush
  2. Make the script executable:

    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:

alias gpush='/path/to/gpush.sh'

Windows (Git Bash): Add an alias to your .bash_profile:

alias gpush='/path/to/gpush.sh'

Reload your terminal or run:

source ~/.bashrc  # Or ~/.zshrc for Zsh users

Usage

Run the script with a custom commit message:

gpush "Your custom commit message"

Run the script without a message to use the default:

gpush

View help information:

gpush -h

License

This project is licensed under the MIT License - see the LICENSE file for details.

© 2052 Max Base

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published