2

I signed up with GitHub today and I'm struggling to understand exactly what way I should be using this.

I have downloaded the Git program and I followed the instructions to create a folder which now resides in "c:/user/app data/local/program/git". However, there is no explanation of what to do next.

Should I be developing and saving the files in this directory, or should I be doing something else? This folder seems like completely the wrong place for my project files (why don't I have them in my own directory?) So I'm sure I'm doing something wrong.

Anyway help appreciated, I can't find any good simple explanations on how to go from start to finish, it assumes I know the workflow for this but I do not.

Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
sam
  • 5,459
  • 6
  • 32
  • 53

1 Answers1

3

You shouldn't have a path like that.

Assuming you installed git correctly, you should be able to say

$ cd /path/to/project
$ git init
$ git remote add origin [github repo] 
$ git add .
$ git commit -m "First commit!" 
$ git push origin master
Josh K
  • 28,364
  • 20
  • 86
  • 132
  • THAT makes sense! So I change to my project directory (for example: c/project/whatever/) then do git init etc? The guide let me to believe I create the directory from the git program and then it leaves me. okay that makes a lot of sense, thanks! I'll do that. – sam Jul 31 '10 at 23:16
  • @user: Yes, that's how it works. Git stores everything in place, unlike SVN or CVS which use a separate central repository. – Josh K Aug 01 '10 at 17:50