We held all our nginx configurations in one git repository. Different set of configs are manged by individual branch. Then we use capistrano to do deployment.