tags:

views:

40

answers:

3

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.

A: 

http://help.github.com/creating-a-repo/

kubi
I have followed this, I have created my repo. The problem is, after creating the folder locally it's in a similar folder to "c/user/app data/local/program/git" which seems completely wrong, why would I put my project there? This leads me to believe I'm doing it wrong, but the site doesn't explain anything this far... Do I develop in my directory then copy into there to commit? The guide doesn't say anything about this, it assumes once I make my folder I know everything.
+2  A: 

see this: Git for beginners: The definitive practical guide

Amir Rachum
+2  A: 

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
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.
@user: Yes, that's how it works. Git stores everything in place, unlike SVN or CVS which use a separate central repository.
Josh K