title: Git change working directory
body: <p>I want to work with Git repository, but working tree should be remote. For example: if I have my project stored inside of <code>~/project</code> and <code>project.git</code> stored inside of <code>~/git/project.git</code>.</p>
  
  <p>What I've changed working tree via config:</p>
  
  <p><code>
  worktree=/Users/myuser/project
  </code></p>
  
  <p>And I'm able to commit and view diff, but when I've tried to do <code>git stash</code>, I got error:</p>
  
  <p><strong>fatal: /usr/libexec/git-core/git-stash cannot be used without a working tree.</strong></p>
  
  <p>How to store <code>.git</code> directory far from working tree?
  And why I'm getting this error?</p>
  
  <p><code>git config --get core.worktree</code> returns correct working directory....</p>