UNPKG

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