Git push to heroku

First, I create new keys using

ssh-keygen -t rsa -C "user@mail.com"

Then I add the generated key to heroku by heroku keys:add.
After that, I tried to push my git repository to heroku using git push heroku master.

  • How to cherry pick a range of commits and merge into another branch
  • How can I make Sublime Text the default editor for Git?
  • What user runs the git hook?
  • Why does Heroku think everything is up-to-date when it isn't?
  • Git tag for a subfolder of a repository
  • User who made Pull Request doesn't appear in Contributor List after merge
  • Before that I have configed my git repository using these commands: git init, git add ., git commit,heroku create, git remote add heroku git@heroku:sth.git.

    However, I got this error Host key verification failed.

    I’m running ubuntu version 11.10. This is strange.

  • Escaping alias commands in a gitconfig files
  • Rails 3.1 Deleted folder can I recover with git?
  • .gitignore whitelist * not working correctly
  • Testing/previewing Github branches on a dev server
  • Git - deleted some files locally, how do I get them from a remote repository
  • Git sh.exe process forking issue on windows XP, slow?
  • 2 Solutions collect form web for “Git push to heroku”

    This is very silly. When it asked whether I wanted to add the host, I just entered without saying yes.

    I think

    git remote add heroku git@heroku:sth.git
    

    should be

    git remote add heroku git@heroku.com:sth.git
    

    i.e. heroku.com rather than just heroku.

    Git Baby is a git and github fan, let's start git clone.