| Crates.io | gitp-ush |
| lib.rs | gitp-ush |
| version | 0.1.0 |
| created_at | 2025-11-16 02:48:37.584949+00 |
| updated_at | 2025-11-16 02:48:37.584949+00 |
| description | Turn your typo into a feature - 'gitp ush' automatically executes 'git push -u origin |
| homepage | https://github.com/7086cmd/gitp-ush |
| repository | https://github.com/7086cmd/gitp-ush |
| max_upload_size | |
| id | 1935107 |
| size | 19,791 |
Write gitp ush and execute git push -u origin <current-branch>.
A small demo that turns your typo into a feature - making gitp ush a shortcut for git push with automatic upstream setting.
gitp ush → git push -u origin <branch>cargo build --release
The binary will be created at ./target/release/gitp
Optional: Add to your PATH:
# Copy to a directory in your PATH
sudo cp ./target/release/gitp /usr/local/bin/
# Or add an alias to your shell config (.bashrc, .zshrc, etc.)
alias gitp='/path/to/target/release/gitp'
gitp ush
Current branch: main
Executing: git push -u origin main
Successfully pushed to origin/main
gitp ush --force
gitp ush --tags
gitp ush --force-with-lease
gitp ush (either by typo or intentionally)git push -u origin <branch> with any additional argumentsThis demonstrates how to build a simple CLI tool in Rust that: