git push not working

53 views
Skip to first unread message

Natmanu

unread,
Oct 21, 2013, 1:41:52 PM10/21/13
to rubyonra...@googlegroups.com

Hi again,

I'm working on http://ruby.railstutorial.org

section
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-git_push

I'm trying to push the repository to the remote site but what ever I fials. I've updated, removed the s of the https etc but still can not push. using command

when I use command:

$ git remote add origin https://github.com/natmanu/demo_app.git
$ git push -u origin master

it then requests my email and password then returns an error. please see attached screen shot for error.

tia
Nat



Jordan Miller

unread,
Oct 21, 2013, 1:50:43 PM10/21/13
to rubyonra...@googlegroups.com
follow the tutorial on github first for how to create a repo and push to it from your computer for the first time.

jordan


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75ab27f0-09e5-45b0-a6df-7c381a0e0f5e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Evaldo Santos

unread,
Oct 21, 2013, 2:51:38 PM10/21/13
to rubyonra...@googlegroups.com

Natmanu

unread,
Oct 21, 2013, 4:06:51 PM10/21/13
to rubyonra...@googlegroups.com
Thanks for the replies.

The problem is that I have already pushed once and it worked well.

https://github.com/natmanu/first_app

after this I installed heroku. I think heroku (ON WINDOWS )  also installed a git so maybe there's a conflict. but I dotn know where to start looking for conflict.

Cheers
Nat

Natmanu

unread,
Oct 21, 2013, 4:27:34 PM10/21/13
to rubyonra...@googlegroups.com
Hi,

More info:

In my .ssh directory on windows,  I have 2 SSH public keys

github_rsa
github_rsa.pub
id_rsa
id_rsa.pub

And on my remote Git I have only one key. Can I add two SSH to github?

or can I call git and specify which key to use for authentication???

Nat

Tamara Temple

unread,
Oct 22, 2013, 6:26:47 AM10/22/13
to rubyonra...@googlegroups.com
Note that this is not the Git help list.

On Oct 21, 2013, at 3:27 PM, Natmanu <nat...@gmail.com> wrote:
> And on my remote Git I have only one key. Can I add two SSH to github?

You can have many many ssh keys on your github account. I have for each box (real and virtual) I work on, and the various test and deployment servers.


saikiran mothe

unread,
Oct 22, 2013, 6:29:33 AM10/22/13
to rubyonra...@googlegroups.com
Hi Temple,

Try :: 

git remote -v
git push -f




--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Norbert Melzer

unread,
Oct 22, 2013, 2:16:05 PM10/22/13
to Rails Mailinglist

I have plenty of ssh keys at github. One foe each of my PCs, one for my server, and every PC has at least 2 operating systems which have it' its own key each.

They never interfered each other.

Norbert Melzer

unread,
Oct 23, 2013, 1:43:57 AM10/23/13
to Rails Mailinglist

You should not use HTTPS for push, delete that remote and add it again using ssh protocol!

Reply all
Reply to author
Forward
0 new messages