UNPKG

1.58 kBMarkdownView Raw
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
10Heroku CLI plugin to manage local git repos.
11
12Commands
13========
14
15heroku git:remote
16-----------------
17
18adds 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```
27extra arguments will be passed to git remote add
28
29Examples:
30
31 $ heroku git:remote -a example set git remote heroku to https://git.heroku.com/example.git
32```
33
34heroku git:clone [DIRECTORY]
35----------------------------
36
37clones 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```
46Examples:
47
48 $ heroku git:clone -a example
49 Cloning into 'example'...
50 remote: Counting objects: 42, done.
51 ...
52```