Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including gitc with all npm packages installed. Try it out:

var gitc = require("gitc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gitc v1.3.0

Manage your pull requests and issues from your command line.

gitc

A simple command-line tool to create issues and pull requests easily.

Support:

Providers:

  • Github
  • Gitlab

OS:

  • Linux
  • macOS
  • Windows

Node version:

  • = 4

Install

yarn add gitc --global
npm install --global gitc

Examples

Pull Requests

Go to your current branch's PR

$ gitc pull

Create a new pull request using your current branch and master

$ gitc pull --create
$ gitc pull -c

Create a new pull request using a different base branch

$ gitc pull -c --base production

Go to a specific pull request:

$ gitc pull 123

Issues

Read the issues:

$ gitc issue

Go to a specific issue:

$ gitc issue 123
$ gitc i 123

Create an issue:

$ gitc i -c

$ gitc issue -c -t Your title here -b Your description

Remote

If you want to use a different remote, usually "origin", you can pass the -r or --remote option:

$ gitc pull --create --remote my-other-remote

gitc uses your .git/config file to read your project's git configuration.

Help

$ gitc --help


  Usage: gitc [options] [command]


  Options:

    -h, --help  output usage information


  Commands:

    pull|p [options] [number]
    issue|i [options] [number]
$ gitc pull --help

  Usage: pull|p [options] [number]


  Options:

    -c, --create [branch]  Branch you want to open the pull request
    -b, --base [branch]    Your base branch, usally the branch that will receive the changes (default: master)
    -r, --remote [remote]  Your remote configuration, usally "origin" (default: origin)
    -h, --help             output usage information
$ gitc issue --help

  Usage: issue|i [options] [number]


  Options:

    -c, --create
    -t, --title [title]       Your issue's title. (default: )
    -b, --body [description]  Your issue's description. (default: )
    -r, --remote [remote]     Your remote configuration, usally "origin" (default: origin)
    -h, --help                output usage information

Enjoy!

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free