Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.17 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.17 KB

Ph

Ph is a simple way to reduce keystrokes and make git push faster.

  • Better than a shell alias because it scans your current repository, intelligently finding git remotes and branches.
  • Doesn't require any runtime installed on the remote system.
  • Dead simple to install and use.

Usage

Introduction

A few real world examples

A demo

Install with one command

curl -L https://github.com/weeklyhack/1-ph/raw/master/compiled/ph-$(uname -s)-$(uname -p) > ph && chmod +x ph && sudo cp ph /usr/local/bin/ph

Then, run ph help.

Why did I make this?

Every day, I push code with git at least 50 times. Usually, I run something like git push origin master, a full 22 characters. There had to be a more efficient way to push code. Am I lazy? Maybe. But, efficiency matters. I tried some fancy shell aliases, and while they were ok they never really worked quite right for my needs. I figured this would be a perfect opportunity to write a solution.