11
$ git push heroku master

I basically get this error message.

error: src refspec master does not match any.
error: failed to push some refs to 'git@heroku.com:falling-stone-505.git'

I'm very new to computer programming and ruby on rails so an "idiots" guide to solving this would be appreciated.

Thanks in advance.

wuputah
  • 11,285
  • 1
  • 43
  • 60
user605116
  • 161
  • 1
  • 3

2 Answers2

22

You haven't committed anything to push yet. Try doing:

$ git add -A
$ git commit

Then try to push to Heroku again.

You might try following along with this tutorial, although I can't vouch for it. Most of the professional endeavors in this space are books.

wuputah
  • 11,285
  • 1
  • 43
  • 60
  • @user605116 , you may also want to try railsforzombies.org . It starts at a pretty basic level and it's entertaining. – JeffH Feb 11 '11 at 20:50
1

If you want your commits to be easier to track in the future, after

1.

$ git add -A

2.

instead of

$ git commit

you can use

$ git commit -m "add a message here such as FIRST COMMIT or PROBLEM WITH CONTACTS VIEW ADDRESS VARIABLE TYPO FIXED."

3. Then you can

$ git push heroku master
knappen
  • 462
  • 3
  • 7