How to make git and denwer?

I am developing site using denwer on windows 7. How to make git and denwer and make easy updates of the website on the server with debian? Just say that just started to learn git. I made a folder in the site repository (i.e. in the folder of the site (call it site) was formed folder .git , also there was a www directory with the files of the site). But now if I put in the folder of the site or any file, that file will be included in the repository, and I don't need to reset the repository, only the files from the folder site/www. If the repository to do in the folder site/www, it will be awkward to pour the files on the server via ftp, you can casually throw on to the server and folder .git. In General, what would be better?
July 9th 19 at 13:02
2 answers
July 9th 19 at 13:04
create a file .gitignore in the root, write on it the rule is: ignore everything except www. Something like:

Google glob gitignore
Added in .gitignore www/debug_download.txt but still editing the file continue to be monitored. What am I doing wrong? - Evalyn.West commented on July 9th 19 at 13:07
July 9th 19 at 13:06
Write a simple deployment script that cleans the site root folder and re-copy the current version from the repository.

Profit: flies from cutlets separate and automate.

Find more questions by tags DenwerGitPHPWindows