Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`git:remote` is not a heroku command

I deployed an app a few days ago and I am trying to modify some pages. To work on my current version, I wanted to fetch my files from heroku.

I used:

heroku git:remote -a fierce-escarpment-8305

like it is said on the page https://devcenter.heroku.com/articles/git.

and received the message:

  !    `git:remote` is not a heroku command.
  !    See `heroku help` for a list of available commands.

I don't know what that means. Can anyone help me ?

Thank you

like image 593
Math-Moi Avatar asked Aug 25 '12 12:08

Math-Moi


1 Answers

heroku git:remote is a fairly new addition to the Heroku gem (it was added in version 2.30.0 on 25th July 2012). Since it's so recent, you probably have an older version installed.

Check your version with this command:

heroku --version

If it's less than 2.30.0 then you can upgrade with this command:

gem update heroku

You could also remove the Gem completely (it's now deprecated) and switch to the Heroku Toolbelt version of the heroku command. You can get it from toolbelt.heroku.com.

like image 200
georgebrock Avatar answered Sep 19 '22 01:09

georgebrock