title: How do I configure a Debian webserver for push Git repo on it?
body: <p>I am working in a PHP developer team and I have Debian Linux web server in my local area network and installed LAMP on it. </p>
  
  <p>So everything was OK until we are planned to using Git as a version control system and use it in our team work. Our scenario is when somebody push Git repository to Linux server, the website that is hosted on it takes effects and everyone in our LAN network can access to it like this:  </p>
  
  <pre><code>192.168.1.100/mysite
  </code></pre>
  
  <p>Every thing is OK, we can pull from server and also push to it!<br>
  But the problem is when we access the website on the server the <code>mysite</code> folder in <code>/var/www</code> didn't take effect.</p>
  
  <p>I've searched the internet and find that we should have a bare repository that connected to a master repository.  But I'm new to Git , so I don't know how to do it.</p>
  
  <p><strong><em>Edited:</em></strong>
  If possible tell me how to do this on GUI, I have SourceTree.Anything else is OK.</p>