Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1egoman/gitpush
Simple app to make git pushes less wordy
https://github.com/1egoman/gitpush
Last synced: about 1 month ago
JSON representation
Simple app to make git pushes less wordy
- Host: GitHub
- URL: https://github.com/1egoman/gitpush
- Owner: 1egoman
- Created: 2015-04-26T12:50:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-09T13:34:00.000Z (over 9 years ago)
- Last Synced: 2024-04-11T13:59:57.016Z (9 months ago)
- Language: CoffeeScript
- Homepage: https://www.npmjs.com/ph
- Size: 246 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PH: Add some chemistry to your git push!
Typing `git push origin master` or arrowing through history sucks.
Instead, do this: `ph om`
## Install
Run `npm i -g ph` to install. `cd` into a git repo, then try out some of the examples below.## Usage: ph [options]
- `-f, -v, -q, -n` are the same as git push, normally.## Branch Choices
- `-m` branch = master
- `-d` branch = dev
- `-c` or `--current-branch` branch = currently active branch
- `--branch [branch]` pick an arbitrary branch## Remote Choices
- `-o` remote = origin
- `-h` remote = heroku
- `-p` remote = production
- `--remote [remote]` pick an arbitrary remote## Examples
- `ph c` ask for the remote but push to the current branch.
- `ph oc` push to origin the current branch.
- `ph hm` push to heroku the master branch.
- `ph ocf` force-push to origin with the current branch.
- `ph --remote origin --branch master` push to origin with the master branch.Any data not specified is prompted for. For example, if you'd like to push to either origin or production, then do `ph c`. This will allow you to choose a remote to push to each time.