ppush is a lightweight Python automation script designed to streamline your Git workflow. Stop typing three commands repeatedly—do it all with one
- Auto Git Init: If no
.gitfolder is detected, the script offers to initialize it and link it to a GitHub URL immediately - Smart Commits: Supports commit messages via arguments (
ppush "message") or interactive input - Visual Feedback: Clean, colored status indicators (
[Success],[Error],[Info]) for better readability - Auto-branching: Automatically detects the current active branch and pushes directly to it
- Remote Origin Check: Even if the
.gitfolder already exists (e.g. after a manualgit init), the script will automatically check if it has aremote originset.- If it is missing, it will prompt you to enter it.
- It will automatically set the branch to
mainand link it to GitHub.
Standard push with interactive commit message.
Shows a list of commands
Fetch new version from this github repo.
Shows current version of ppush.
- Clone this repo
- Run the provided installation bash script:
chmod +x ppush_setup.sh ./ppush_setup.sh
if ppush --version still shows the old version after a refresh, it's likely a PATH priority
or caching issue.
- Clear the shell cache: Your terminal might still remember the old location of the script. Run this to reset it:
hash -r- Check your PATH:
Ensure your local bin directory is at the beginning of your
$PATH. Add this to your.bashrc:
export PATH="$HOME/.local/bin:$PATH"Then apply the changes:
source .bashrc- Remove old global versions:
if you previously installed
ppushusingsudo, the old version in/usr/local/binmight be overriding your local one. Remove it:
sudo rm /usr/local/bin/ppush- Python 3.11 or higher
coloramalibrary- Have installed
giton your system
Contributions are welcome! If you'd like to help improve ppush, please read the CONTRIBUTING.md file to understand how to get started, report bugs, or submit your own pull requests.
