Kiddie question here -- I've read all kinds of posts about git add and can't find this situation.
I've been working on some files on my own computer without even thinking about Git or version control and I just now created a repository on Github to start tracking these better/learn git for my own edification. What I want to do is initialize a local repository, add the existing files on my computer, and then push them to the repository I have on Github. I am using a Mac with version 10.6.8.
With the files I have there is a parent directory, and then a couple of child directories and they each have a few files in them -- enough to make it tedious to just manually create and copy them all on Github.
So based on all kinds of documentation that I'm reading, I think I should be doing the following:
1) cd Users/myname/Documents/etc.etc.etc./most-high-level-directory-of-my-project-on-my-local-machine
2) git init
-- terminal says:
Reinitialized existing Git repository in /Users/.../.../most-high-level-directory-of-my-project-on-my-local-machine/.git/
3) git status (just to check, I'm not expecting files in the index yet)
-- terminal says:
# On branch master
nothing to commit, working directory clean
4) git add * (this is where I'm expecting git to add all of the child folders/files of the current directory to the index, so I can them commit them and push them to Github)
-- terminal doesn't say anything. no error messages. no success messages.
5) git status
-- terminal says:
# On branch master
nothing to commit, working directory clean
I've tried different things at #4 and tried it from a couple of different directories after it didn't work where I initialized my repo:
git add .
git add (specific path to the parent folder)
git add (a specific file just to see if that one file would get added to the index)
Everything I read says it should just work if a repo is initialized, but no matter what I do this command does absolutely nothing.
I feel like I have to be missing an extremely basic concept about how this whole process works, but none of the tutorials or questions I have read address the issue of git add just not doing anything after I've initialized a repo. Any thoughts as to what might be causing this? Gracias!