话不多说,简单粗暴
http://stackoverflow.com/questions/35643201/how-to-set-up-a-sychronous-directory-in-remote-server-with-git