A simple tool for git to automate some of the commonly used tasks.
Whenever working in a git repository in terminal or shell, you can use this command with desired options and it will do all your tasks automatically.
This tool is mainly intended for Linux terminals, but it also works on WSL for Windows (Ubuntu, Debian, Kali, or any other WSL distribution). It can be used on any operating system that has bash available.
Installation and setup instructions are provided below.
If you use:
gitpush -h
# or
gitpush --helpYou will get a help page similar to the following:
- Any Unix / Linux distribution
- macOS
- Windows (via WSL)
- Android (via Termux)
- A shell with bash
- git
- Install Termux from the Play Store: https://play.google.com/store/apps/details?id=com.termux
- Update Termux:
pkg update - Check if git is installed:
- Use:
git --version - If not installed:
pkg install git
- Use:
- Clone the repository:
git clone https://github.com/CISSSCO/GitPush.git - Install GitPush:
./install.sh - Verify installation:
gitpush -h
Steps are mostly similar to Android.
- Open Terminal or shell
- Check if git is installed:
git --version - Clone and install:
git clone https://github.com/CISSSCO/GitPush.git cd GitPush sudo cp gitpush /usr/bin/gitpushFor macOS, if the above does not work:
sudo cp gitpush /bin/gitpush # or ./install.sh - Verify installation:
gitpush -h
- Search for Turn Windows features on or off
- Enable Windows Subsystem for Linux and restart
- Open cmd or PowerShell
- Install WSL:
wsl --installYou can also install Ubuntu or another Linux distribution from the Microsoft Store: https://www.microsoft.com/store/productId/9N6SVWS3RX71
- If you don’t want to use WSL, download git from: https://git-scm.com/downloads
- Open Ubuntu / another WSL distro, or run:
wslAlternatively, open Git Bash
- Follow Linux steps from this point onward
- Check git installation:
git --version - Clone and install:
git clone https://github.com/CISSSCO/GitPush.git cd GitPush #sudo cp gitpush /usr/bin/gitpush ./install.sh
For Git Bash (run as Administrator):
cp -f gitpush /usr/bin/ - Enjoy!
A brief documentation explaining how to use this tool is available.
Open the documentation file: DOCUMENTATION
If you are using this project and find it helpful, or if you want to encourage further development, you can support it by:
- Starring the repository
- Sharing the project
- Giving proper credit in your README when using GitPush and linking back to it
Thanks!
© 2021 Cisco Ramon Licensed under the MIT License MIT License
