Aseem Bansal
Aseem Bansal

Reputation: 6962

git push heroku master fails in heroku

I am starting out with heroku and am following the getting to start with heroku tutorial. I am on windows 7 and am using Windows powershell as the command line.

The commands that I am using are

git clone git://github.com/heroku/ruby-sample.git
cd ruby-sample
heroku login
heroku create
git push heroku master
heroku open

The directory was cloned and after heroku login I got Authentication successful. in the command line. After heroku create I got

Creating immense-lowlands-8694... done, stack is cedar
http://immense-lowlands-8694.herokuapp.com/ | [email protected]:immense-lowlands-8694.git
Git remote heroku added

so the app was added to my heroku account. But there was problem with git push heroku master. I got

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What I have tried so far

this

Found existing public key: C:/Users/Aseem/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Aseem/.ssh/github_rsa.pub... done

but after that the error didn't end.

What can I do to solve the problem?

Upvotes: 0

Views: 2033

Answers (1)

Aseem Bansal
Aseem Bansal

Reputation: 6962

Installed MSysGit instead of git. Added the C:\Program Files(x86)\Git\bin directory to the PATH variable and then doing what this answer says solved the problem.

Upvotes: 1

Related Questions