I installed - gem install git - sudo apt-get install git-core - cd to folder where my application "demo" is - /home/ruby/ - git init - git status - git add . - git commit -m "First V" - git config --global user.name "Ali Imran" - git config --global user.email "ali-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org now i am running git push origin master and getting error of host and port 22 how to fix this error. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ali Imran wrote:> I installed > > - gem install git > - sudo apt-get install git-core > > - cd to folder where my application "demo" is > - /home/ruby/ > - git init > - git status > - git add . > - git commit -m "First V" > - git config --global user.name "Ali Imran" > - git config --global user.email "ali-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org > > > now i am running > > git push origin master > > and getting error of host and port 22 > > how to fix this error.This is a Git issue, not a Rails issue. Please ask on a Git forum. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ali Imran wrote:> I installed > > - gem install gitWow. I didn''t even know there was a git gem. What is that some Ruby wrapper for Git? Very interesting. I''ll have to look into what this is about.> - sudo apt-get install git-core > > - cd to folder where my application "demo" is > - /home/ruby/ > - git init > - git status > - git add . > - git commit -m "First V" > - git config --global user.name "Ali Imran" > - git config --global user.email "ali-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org > > > now i am running > > git push origin masterYou didn''t list where you added the "origin" remote to your repository. Did you do that? git remote show origin What does that tell you about the remote named "origin?" If you don''t have an "origin" remote then add one with: git remote add origin <url_to_repository>> and getting error of host and port 22 > > how to fix this error.Git needs to know where to push to. A remote named "origin" should contain that information. If you clone an exiting repository then Git will kindly add the "origin" remote for you, which points back to the original repository. But, if you create a new repository then there is no origin, which should be kind of obvious. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 30 Jun 2010, at 22:30, Robert Walker wrote:>> and getting error of host and port 22 >> >> how to fix this error. > > Git needs to know where to push to. A remote named "origin" should > contain that information. > > If you clone an exiting repository then Git will kindly add the > "origin" > remote for you, which points back to the original repository. But, if > you create a new repository then there is no origin, which should be > kind of obvious.... meaning that if you just want to use Git on your own computer and not push to a "central" repository, you just use "git commit". -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes i did the same thing through out i have apache2 on ubuntu when i run git push origin master instead of mysshid-kvh1m6N1YIaXOYBArhM4ZA@public.gmane.org it took me to for password ali-kvh1m6N1YIaXOYBArhM4ZA@public.gmane.org here i am stuck i look at the apache config and i set the globaluser name for git but it did not work On Jun 30, 3:18 pm, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 30 Jun 2010, at 22:30, Robert Walker wrote: > > >> and getting error of host and port 22 > > >> how to fix this error. > > > Git needs to know where to push to. A remote named "origin" should > > contain that information. > > > If you clone an exiting repository then Git will kindly add the > > "origin" > > remote for you, which points back to the original repository. But, if > > you create a new repository then there is no origin, which should be > > kind of obvious. > > ... meaning that if you just want to use Git on your own computer and > not push to a "central" repository, you just use "git commit".-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ali Imran wrote:> i look at the apache config and i set the globaluser name for git but > it did not workI think you''ve gone completely off-topic at this point. You really need to take this to an appropriate Git forum. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes you are right, thanks On Jun 30, 3:51 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Ali Imran wrote: > > i look at the apache config and i set the globaluser name for git but > > it did not work > > I think you''ve gone completely off-topic at this point. You really need > to take this to an appropriate Git forum. > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.