title: Connecting to web hosting site via git in such a way that I can push and pull directly via my local pc
body: <p>I initialized a bare repository on server</p>
  
  <pre><code>git init --bare  
  </code></pre>
  
  <p>and then added a remote</p>
  
  <pre><code>git remote add origin my.hosting.website.com:my-repository.git   
  </code></pre>
  
  <p>then I am trying to pull.I used     </p>
  
  <pre><code>pull -all my repo on server
  </code></pre>
  
  <p>Problem is when I try to pull/push an item it gives error message</p>
  
  <pre><code>fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree
  </code></pre>
  
  <p>How to resolve this issue ?</p>
  
  <p>Sorry I am just new to git.</p>