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 400,000 packages pre-installed, including heroku-git with all npm packages installed. Try it out:

var herokuGit = require("heroku-git")

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

heroku-git v2.5.23

Heroku CLI plugin to manage local git repos.

heroku-git Circle CI

Code Climate Test Coverage npm version License

js-standard-style

Heroku CLI plugin to manage local git repos.

Commands

heroku git:remote

adds a git remote to an app repo

-a, --app the Heroku app to use

-r, --remote the git remote to create

--ssh-git use SSH git protocol

extra arguments will be passed to git remote add

Examples:

  $ heroku git:remote -a example set git remote heroku to https://git.heroku.com/example.git

heroku git:clone [DIRECTORY]

clones a heroku app to your local machine at DIRECTORY (defaults to app name)

-a, --app the Heroku app to use

-r, --remote the git remote to create, default "heroku"

--ssh-git use SSH git protocol

Examples:

  $ heroku git:clone -a example
  Cloning into 'example'...
  remote: Counting objects: 42, done.
  ...
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