I'm new to git, I followed this tutorial https://kb.mediatemple.net/questions/1594/Using+Git#gs to use git with mediatemple, using netbeans I can push changes successfully, but when I check the remote directory files aren't there! There's just a example.git file that contains some files, but my project files doesn't exit? What's the purpose of using GIT when we use it only to index changes in some format, how can I upload the updated files to the server?
1 Answer
The answer is simple, that is a bare git repository. All your files are stored in the .git folder, they are simply hidden (converted to a format that is easier to handle) because nobody will modify it locally. Otherwise it is identical to your local repo.
If you're unsure, just go to a temporal folder and clone the remote repository. You'll have all the files if you were able to push without problems. Another way is to check the repo with the plumbing tools but I wouldn't recommend that if you're new to git :-) See some description here.
So if you want to automatically update the files, simply create a post-push hook that updates the local working copy after every push automatically. You can find tons of tutorials about that on the web, Google give me this for the first hit.