title: setting up git repository on local machine
body: <p>How can I setup a git repository on a local system ? (I am on a windoze box)</p>
  
  <p>This is the setup I am trying to achieve: (everything is on my local machine)</p>
  
  <ul>
  <li>host folder (which acts like central repository)</li>
  <li>client folder</li>
  </ul>
  
  <p>I want to do all my dev in the client folder. Once I am done, I'd like to push it to the host folder.</p>
  
  <hr>
  
  <p>This is what I've done: (using git bash on windows)</p>
  
  <ul>
  <li>cd d:/adinsert</li>
  <li>mkdir host
  <ul>
  <li>cd host</li>
  <li>git init</li>
  </ul></li>
  </ul>
  
  <p>cd c:/</p>
  
  <ul>
  <li>mkdir client
  <ul>
  <li>cd client</li>
  <li>git init</li>
  <li>git remote add origin d:/host
  // Added some files in client folder and commited them</li>
  <li>git push origin master</li>
  </ul></li>
  </ul>
  
  <p>When I push stuff to origin, git spits a lot of remote errors. However, when I make my host a bare git, it pushes successfully.</p>
  
  <p>I don't understand the difference between regular git and bare git. From the manual, all I understood was, bare git is used for storing deltas and when you don't want to store original files. However, I'd like to store the files in host. How can I do that ?</p>