UNPKG

1.46 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
8Heroku CLI plugin to manage local git repos.
9
10Commands
11========
12
13heroku git:remote
14-----------------
15
16adds a git remote to an app repo
17
18`-a, --app` the Heroku app to use
19
20`-r, --remote` the git remote to create
21
22`--ssh-git` use SSH git protocol
23
24```
25extra arguments will be passed to git remote add
26
27Examples:
28
29 $ heroku git:remote -a example set git remote heroku to https://git.heroku.com/example.git
30```
31
32heroku git:clone [DIRECTORY]
33----------------------------
34
35clones a heroku app to your local machine at DIRECTORY (defaults to app name)
36
37`-a, --app` the Heroku app to use
38
39`-r, --remote` the git remote to create, default "heroku"
40
41`--ssh-git` use SSH git protocol
42
43```
44Examples:
45
46 $ heroku git:clone -a example
47 Cloning into 'example'...
48 remote: Counting objects: 42, done.
49 ...
50```