class Heroku::Command::Git

manage git for apps

Public Instance Methods

clone() click to toggle source
git:clone [DIRECTORY]

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

-a, --app    APP     # the Heroku app to use
-r, --remote REMOTE  # the git remote to create, default "heroku"
    --ssh-git        # use SSH git protocol
    --http-git       # HIDDEN: Use HTTP git protocol

Examples:

$ heroku git:clone -a example
Cloning into 'example'...
remote: Counting objects: 42, done.
...
# File lib/heroku/command/git.rb, line 24
def clone
  Heroku::JSPlugin.install('heroku-git')
  Heroku::JSPlugin.run('git', 'clone', ARGV[1..-1])
end
remote() click to toggle source
git:remote [OPTIONS]

adds a git remote to an app repo

if OPTIONS are specified they will be passed to git remote add

-a, --app    APP           # the Heroku app to use
-r, --remote REMOTE        # the git remote to create, default "heroku"
    --ssh-git              # use SSH git protocol
    --http-git             # HIDDEN: Use HTTP git protocol

Examples:

$ heroku git:remote -a example
set git remote heroku to https://git.heroku.com/example.git
# File lib/heroku/command/git.rb, line 47
def remote
  Heroku::JSPlugin.install('heroku-git')
  Heroku::JSPlugin.run('git', 'remote', ARGV[1..-1])
end