I start to use Git and my project VCS. I have created a remote repo using
git init --bare
in /codes-repo and push changes from local repo to there. then I want to move project files from there to /var/www/project to be accessible for http://.... . but I don't see any project files (index.php,css/,....) at /codes-repo to copy them, there are only git files and folders there. Where are them??
A bare repository does not have a checkout. That is to say, a bare repository only holds the commit information - it does not keep a copy of the actual files on disk within the repository folder.
Bare repositories can only be pushed to or pulled from. To get a hold of the files, your best bet is probably to clone the bare repository (as a non-bare clone), and run a checkout at the clone.
Another option, if you're feeling brave, is to convert the bare repository into a non-bare repository (How do I convert a bare git repository into a normal one (in-place)?)