title: git tab space difference issue
body: <p>For some reason, if I indent anything with a tab in any file like this:</p>
  
  <p>Before:</p>
  
  <pre><code>something {
  text
  }
  </code></pre>
  
  <p>After:</p>
  
  <pre><code>something {
      text
  }
  </code></pre>
  
  <p>git diff shows me this instead:</p>
  
  <pre><code>something {
          text
  }
  </code></pre>
  
  <p>I've tried couple different editors (Eclipse, Gedit), but the outcome is the same. My question is: why does git sees a tab as 8 spaces instead of 4? How do I fix this?</p>
  
  <p>I've tried this:</p>
  
  <pre><code>git config --global core.pager 'less -x4'
  </code></pre>
  
  <p>So now the tab size in <code>git diff</code> is correct, but when I push it to remote repository (Bitbucket), it still shows as 8 spaces instead of 4. I don't understand. When I worked on windows everything was fine, but now that I've switched to Ubuntu I have this problem.</p>
  
  <p>I'm using Ubuntu 13.10 (Saucy Salamander) 64bit</p>