title: What is the best way to setup a git server[using gitlab] where the repository is under public_html?
body: <p>I want a way to setup a git server using gitlab on our development server so that when someone commits code it commits to the working copy under public_html.</p>
  
  <p>I have looked at instances of using git inside public_html as a git client and pull from the same machine using cron. However this is not ideal and will not work for us.</p>
  
  <p>What I have found so far is to change git_data_dir "/mnt/nas/git-data" in /etc/gitlab/gitlab.rb . But then the whole directory structure is copied.</p>