A
A
Anatoly Ferisov2013-01-02 14:20:22
git
Anatoly Ferisov, 2013-01-02 14:20:22

Github + Heroku how to do everything right?

What I do:
1. Created a repository on Github and uploaded files there;
2. Created an ssh key and added the public to Github;
3. Add a public key to heroku: heroku keys:add "id_rsa.pub"
3. Copy the repository from Github: git clone [email protected]:Mor/exp.git
4. Change to the exp folder.
5. I go to heroku: heroku login - I enter my mail and password;
6. I create an application on heroku: heroku apps:create exp (I also call it the same as the repository);
7. Trying to upload files to heroku: git push heroku
master
error: failed to push some refs to '[email protected]:exp.git'
When executing "git pull heroku master":
fatal: Couldn't find remote ref master
1. Am I doing the right thing?
2. Maybe you need to clean everything and try again?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vyacheslav Slinko, 2013-01-02
@KeepYourMind

In general, such an error occurs when the remote version is higher than the local version or they differ greatly.
This is possible if:
- heroku does not check the uniqueness of the application name;
- you have already updated the project on heroku.
You can try to run the following command: git push -f heroku master:master
PS I don't remember sending the key to heroku.

A
andreysmind, 2013-01-02
@andreysmind

try git remote -v
and see what path is specified for heroku.

S
sl_bug, 2013-01-02
@sl_bug

Have you tried git push heroku +master?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question