1 | # heroku-git [![Circle CI](https://circleci.com/gh/heroku/heroku-git/tree/master.svg?style=svg)](https://circleci.com/gh/heroku/heroku-git/tree/master)
|
2 |
|
3 | [![Code Climate](https://codeclimate.com/github/heroku/heroku-git/badges/gpa.svg)](https://codeclimate.com/github/heroku/heroku-git)
|
4 | [![Test Coverage](https://codeclimate.com/github/heroku/heroku-git/badges/coverage.svg)](https://codeclimate.com/github/heroku/heroku-git/coverage)
|
5 | [![npm version](https://badge.fury.io/js/heroku-git.svg)](https://badge.fury.io/js/heroku-git)
|
6 | [![License](https://img.shields.io/github/license/heroku/heroku-git.svg)](https://github.com/heroku/heroku-git/blob/master/LICENSE)
|
7 |
|
8 | [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
|
9 |
|
10 | Heroku CLI plugin to manage local git repos.
|
11 |
|
12 | Commands
|
13 | ========
|
14 |
|
15 | heroku git:remote
|
16 | -----------------
|
17 |
|
18 | adds a git remote to an app repo
|
19 |
|
20 | `-a, --app` the Heroku app to use
|
21 |
|
22 | `-r, --remote` the git remote to create
|
23 |
|
24 | `--ssh-git` use SSH git protocol
|
25 |
|
26 | ```
|
27 | extra arguments will be passed to git remote add
|
28 |
|
29 | Examples:
|
30 |
|
31 | $ heroku git:remote -a example set git remote heroku to https://git.heroku.com/example.git
|
32 | ```
|
33 |
|
34 | heroku git:clone [DIRECTORY]
|
35 | ----------------------------
|
36 |
|
37 | clones a heroku app to your local machine at DIRECTORY (defaults to app name)
|
38 |
|
39 | `-a, --app` the Heroku app to use
|
40 |
|
41 | `-r, --remote` the git remote to create, default "heroku"
|
42 |
|
43 | `--ssh-git` use SSH git protocol
|
44 |
|
45 | ```
|
46 | Examples:
|
47 |
|
48 | $ heroku git:clone -a example
|
49 | Cloning into 'example'...
|
50 | remote: Counting objects: 42, done.
|
51 | ...
|
52 | ```
|