# git-helpers

> Some git helpers for your shell

Latest version **0.2.1** (published 2013-02-25) · 0 weekly downloads

## Install

```sh
npm install git-helpers
pnpm add git-helpers
yarn add git-helpers
bun add git-helpers
```

Provides the commands `gh-co-pull`, `npm-create`, `git-merge-rm`, `hub-pull-req`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2013-02-25 |
| First published | 2013-02-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Smart |
| Maintainers | tim-smart |

## Links

- npm: https://www.npmjs.com/package/git-helpers
- Repository: http://github.com/tim-smart/git-helpers
- npm.io page: https://npm.io/package/git-helpers

## Recent versions

- 0.2.1 (latest) — 2013-02-25
- 0.2.0 — 2013-02-23
- 0.1.1 — 2013-02-23
- 0.1.0 — 2013-02-23
- 0.0.1 — 2013-02-23

## README

git-helpers
===========

Some helpful executables for working with git.


### gh-co-pull

Checkout a new branch and pull from a github user - branch combination. The
following pairs are equivilents.

    # In some-repo:master
    $ gh-co-pull tim-smart
    $ git checkout -b pull/tim-smart/master && git pull \
      git://github.com/tim-smart/some-repo.git master

    # In some-repo:master
    $ gh-co-pull tim-smart test-branch
    $ git checkout -b pull/tim-smart/test-branch && git pull \
      git://github.com/tim-smart/some-repo.git test-branch

### git-merge-rm

Merges a branch into the current one, pushes it then deletes the branch on both
the remote and local repository.


### hub-pull-req

Parses the Github issue number from the current branch name (expects
'issue/xx{/blah}) then turns that issue on Github into a pull request. This
requires `gem install hub` to be installed, and available as `hub`.


### npm-create

Create a npm / github repository with a name and dependencies. It uses the
following values:

    $ git config --global github.user
    $ git config --global user.name
    $ git config --global user.email
    $ npm whoami
    $ node -v

Some usage:

    $ npm-create project-name some-depend=0.1.x 'request>=0.1' dev:expresso

Which would create the project "project-name" with the following package.json:
(With the names etc replace with your own)

    { "name" : "project-name"
    , "version" : "0.0.1"
    , "author" : "Tim Smart <tim@fostle.com>"
    , "description" : ""
    , "engines" :
      { "node" : ">=0.9.10"
      }
    , "homepage" : "https://github.com/tim-smart/project-name"
    , "repository" :
      { "type" : "git"
      , "url" : "git://github.com/tim-smart/project-name.git"
      }
    , "bugs" : {
        "email" : "tim@fostle.com"
      , "url" : "https://github.com/tim-smart/project-name/issues"
      }
    , "main" : "./lib/project-name.js"
    , "bin" :
      { "project-name" : "bin/project-name"
      }
    , "dependencies" :
      { "some-depend" : "0.1.x"
      , "request" : ">=0.1"
      }
    , "devDependencies" :
      { "expresso" : "*"
      }
    }


## Some recommendations

    git clone git://github.com/stephencelis/ghi.git

---
_Source: https://npm.io/package/git-helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
