Working around the "heroku create" error

From DevchixWiki

Jump to: navigation, search

Here's what erroneous heroku create output looks like. The error messages are bolded.

smei@NINOHE ~/Desktop/ruby_on_rails/test_app (master)
$ heroku create
Enter your Heroku credentials.
Email: my@email.com
Password:
Uploading ssh public key C:\Documents and Settings\smei/.ssh/id_rsa.pub
Created http://floating-winter-18.heroku.com/ | git@heroku.com:floating-winter-18.git
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
Git remote heroku added

This is caused by a bug in the heroku gem. To work around it, do the following (in the Git Bash shell):

  • git remote (It should say only origin.)
  • git remote add heroku git@heroku.com:"application-name".git (application-name for the heroku create above would be floating-winter-18)
  • git remote (It should now have heroku in addition to origin.)