Rails Installer Problem

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

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

git init

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.

try
git commit -m "Initial."

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.

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
http://i593.photobucket.com/albums/tt16/camerageddon/gitgui.jpg

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.

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/

...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>

You need to upload your public key to GitHub.

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

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?

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.

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.

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.