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.
- Simplifies the 
git add,git commit, andgit pushprocess. - Allows specifying a custom commit message.
 - Defaults to "Update" if no message is provided.
 
- 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.batscript for Windows 
 - Use Git Bash or WSL for best compatibility if you want to use 
 
- 
Clone the repository:
git clone https://github.com/BaseMax/gpush.git cd gpush - 
Make the script executable:
chmod +x gpush.sh
 - 
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 usersRun the script with a custom commit message:
gpush "Your custom commit message"Run the script without a message to use the default:
gpushView help information:
gpush -hThis project is licensed under the MIT License - see the LICENSE file for details.
© 2052 Max Base