Using git source control with a website
问题 So I just want to set up Git on my server, but I'm running into a million problems so forget that. Can I set up a normal git repo and then have my web server "auto" sync (just read, I guess) with the git repo? I'm just part of a 2 person team and would prefer to use Git over any other version control. 回答1: TL;DR You can pull from your web server, but pushing to a non-bare repository requires a number of extra steps and can create problems. The right thing to do is usually to use a webhook or