I am following the examples here http://wiki.dreamhost.com/Git
Basically I want to create a git repo i can push to on a server from my desktop... On host:
What you see seems correct. The .git files you see in that folder (and a lot of it in the objects directory) contains all your git repository.
When you make a "bare" repository, this prevents anybody else to edit the files directly there (on your host machine), not having the project checked out with all your source file is one of the thing that would prevent such editing.
git init --bare
creates a "bare" repository - one that does not have a working directory associated with it. What you are seeing is what is expected. If you want a separate repository that has a checked out working directory associated with it, don't use the --bare
option, but note that doing so has additional implications, because git push
acts differently when the remote is not a bare repository, in order to protect you from losing any unstaged/uncommitted changes you may have in the remote.