# Rails Installer Problem

**URL:** <https://discuss.rubyonrails.org/t/rails-installer-problem/59661>\
**Category:** rubyonrails-talk\
**Created:** [June 30, 2011, 4:26pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661 "2011-06-30T16:26:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![frandansan](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@frandansan](https://discuss.rubyonrails.org/u/frandansan)\
**Post date:** [June 30, 2011, 4:26pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/1 "2011-06-30T16:26:38Z")

</div>

Hello. Thanks to all who made the rails installer possible.

I'm going through the video tutorial and am stuck at point 7:00 where we're adding to github. Everything went smoothly up to that point.

C:\Sites\ridemo\>git add . fatal: Not a git repository (or any of the parent directories): .git

What to do?

Thanks in advance, Dan

---

<div class="post-metadata">

**Author:** ![Tim\_Shaffer2](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Tim\_Shaffer2](https://discuss.rubyonrails.org/u/Tim_Shaffer2)\
**Post date:** [June 30, 2011, 5:31pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/2 "2011-06-30T17:31:10Z")

</div>

You probably need to designate that directory as a git repository first.

git init

---

<div class="post-metadata">

**Author:** ![frandansan](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@frandansan](https://discuss.rubyonrails.org/u/frandansan)\
**Post date:** [June 30, 2011, 8:38pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/3 "2011-06-30T20:38:58Z")

</div>

That did it. Thanks.

New problem...

C:\Sites\ridemo\>git init Initialized empty Git repository in C:/Sites/ridemo/.git/

C:\Sites\ridemo\>git add .

C:\Sites\ridemo\>git commit "Initial." error: pathspec 'Initial.' did not match any file(s) known to git.

---

<div class="post-metadata">

**Author:** ![Noel2](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@Noel2](https://discuss.rubyonrails.org/u/Noel2)\
**Post date:** [July 1, 2011, 1:15am UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/4 "2011-07-01T01:15:29Z")

</div>

try git commit -m "Initial."

---

<div class="post-metadata">

**Author:** ![Chirag](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@Chirag](https://discuss.rubyonrails.org/u/Chirag)\
**Post date:** [July 1, 2011, 4:52am UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/5 "2011-07-01T04:52:30Z")

</div>

If you prefer to do these things through GUI, then use “git gui”, it will open up a nice gui for you where you can select which files should be committed, specify the commit comments, commit and push to the server.

---

<div class="post-metadata">

**Author:** ![frandansan](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@frandansan](https://discuss.rubyonrails.org/u/frandansan)\
**Post date:** [July 8, 2011, 9:42pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/6 "2011-07-08T21:42:20Z")

</div>

Thanks. git commit -m "Initial." worked. I had left out the "m".

Now I'm stuck here...

C:\Sites\ridemo\>gh create-from-local =\> error creating repository

git gui starts the gui, but I'm not sure what to do after it starts. I don't know which files should be committed or how to accomplish the goal of "gh create-from-local" or how to get something to appear in the empty boxes

 ![](https://global.discourse-cdn.com/rubyonrails/original/2X/3/3fd704ff46384dbfe56058ab53bf3e77ce48e378.jpeg)

---

<div class="post-metadata">

**Author:** ![frandansan](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@frandansan](https://discuss.rubyonrails.org/u/frandansan)\
**Post date:** [July 24, 2011, 12:53am UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/7 "2011-07-24T00:53:25Z")

</div>

For lack of a better idea, I just skipped over that error and went on to the next step. Now I have the one below...

C:\Sites\ridemo\>gh create-from-local =\> error creating repository

C:\Sites\ridemo\>git remote add origin git@github.com:friendlyfriend/ riddemo.git

C:\Sites\ridemo\>git push -u origin master The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b: 56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of know n hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly

C:\Sites\ridemo\>publickey 'clip' is not recognized as an internal or external command, operable program or batch file. Your public ssh key has been copied to your clipboard.

C:\Sites\ridemo\>

It says, "Your public ssh key has been copied to your clipboard", but the public key is not copied to the clipboard.

---

<div class="post-metadata">

**Author:** ![frandansan](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@frandansan](https://discuss.rubyonrails.org/u/frandansan)\
**Post date:** [July 24, 2011, 1:38am UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/8 "2011-07-24T01:38:30Z")

</div>

So I decided to go through this process for setting the key described on the github site...

[http://help.github.com/win-set-up-git/](http://help.github.com/win-set-up-git/)

...That all went well, but it still gives me the same error:

C:\Sites\ridemo\>git push -u origin master Permission denied (publickey). fatal: The remote end hung up unexpectedly

C:\Sites\ridemo\>

---

<div class="post-metadata">

**Author:** ![Luis\_Lavena](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Luis\_Lavena](https://discuss.rubyonrails.org/u/Luis_Lavena)\
**Post date:** [July 24, 2011, 8:15pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/9 "2011-07-24T20:15:12Z")

</div>

You need to upload your public key to GitHub.

That should be inside .ssh directory in your user folder.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [October 22, 2011, 2:02pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/10 "2011-10-22T14:02:31Z")

</div>

sir i m stuck at gh create-from-local and i got an error "c:/rails 1.9.2/lib/ruby/1.9.1/open.rb:202: in 'spawn': no such file or directory-curl-f'..........

what i ll do?

---

<div class="post-metadata">

**Author:** ![Norbert\_Melzer](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@Norbert\_Melzer](https://discuss.rubyonrails.org/u/Norbert_Melzer)\
**Post date:** [October 29, 2012, 5:25pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/11 "2012-10-29T17:25:33Z")

</div>

Where your ssh dir is, aber depends on your version of windows, the used ssh client and if you are using cygwin or msys or non of them.

So please give some more details about your environment.

---

<div class="post-metadata">

**Author:** ![Jordon\_Bedwell1](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Jordon\_Bedwell1](https://discuss.rubyonrails.org/u/Jordon_Bedwell1)\
**Post date:** [October 29, 2012, 5:28pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/12 "2012-10-29T17:28:10Z")

</div>

Install github for Windows so it will manage your keys and everything for you automatically, it's truly the easiest way to Work with git on Windows if it's your first time with Git.

---

<div class="post-metadata">

**Author:** ![Colm\_Ginty](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Colm\_Ginty](https://discuss.rubyonrails.org/u/Colm_Ginty)\
**Post date:** [October 29, 2012, 8:49pm UTC](https://discuss.rubyonrails.org/t/rails-installer-problem/59661/13 "2012-10-29T20:49:32Z")

</div>

Thanks Norbert and Jordan, I found the ssh directory. I realise in hindsight that I should have done some more searching before I posted the question. I’m still getting the hang of this software lark (I’m a complete beginner!) I am working with GitHub, although I’m having some serious trouble syncing my system up with the online repository. I will work at it though, and perhaps post a question if I can’t make any progress. Thanks again for your help guys.
