Project: Your First Rails Application help


#1

So im up to this stage 3.3
git remote add origin
git push -u origin master

when i git push -u origin master, i get this from terminal:

error: src refspec master does not match any.
error: failed to push some refs to ‘git@github.com:twram/my_first_rails_app.git’


#2

also when I try to ad another repository: git remote add origin git@github.com:twram/my_first_rails_app_2.git

i get this error: fatal: remote origin already exists.

I know nothing of github or terminal stuff if it wasnt already obvious, so im stuck on how to proceed.


#3

Make sure you don’t put the <> while entering your git remote add origin ssh from git in the first command. Do that first before entering the second command.


#4

fixed. what i did was: git remote rm origin(thanks stack overflow) deleted repositories. added original repository again. cd Projects > cd odin_on_rails > cd my_first_rails_app then redid:
git remote add origin
git push -u origin master

seems to have worked


#5

I think i did start by adding the <>, probalies the start of the problem


#6

Yes that should be taken as a place for the ssh key.