Actually, this is quite complicated.
For several months, I tried to automate our deployment without absolute success. In my experience, I only see a way to do this:
At the build server on your deployment computer (or on the same network)
The build server pulls your code from the repository, say, once a minute and checks for changes. If there are changes, it will execute the build scripts associated with this project. I suggest you use TeamCity because it is very easy to use compared to CruiseControl ( I'm not sure if you can use Git with TFS ). You can program the build server to create your solution or project, and after that you can run the msbuild script to copy the files to the production folder (for example: c:\inetpub\yourapp or \\my_server\inetpub\yourapp ). You can use MSBuild Copy Task to do this.
UPDATE 1: I have not tried, but if that helps, you can click on the FTP server using git-ftp
UPDATE 2: It seems like some guy did some workarounds and successfully deployed his application using Git and FTP.
source share