title: Can anyone explain me how to solve the error in installing homebrew in macbook running mavericks?
body: <p>I tried installing homebrew using the ruby command found in homebrew home page. But I repeatedly failed to do. I get error as follows.</p>
  
  <pre><code>==&gt; Downloading and installing Homebrew...
  remote: Counting objects: 209149, done.
  remote: Compressing objects: 100% (56183/56183), done.
  error: RPC failed; result=18, HTTP code = 200 MiB | 77.00 KiB/s    
  fatal: The remote end hung up unexpectedly
  fatal: early EOF
  fatal: index-pack failed
  Failed during: git fetch origin master:refs/remotes/origin/master -n
  </code></pre>
  
  <p>I searched for it and I found one suggested solution, i.e, changing buffer size using the command </p>
  
  <pre><code> git config http.postBuffer 524288000
  </code></pre>
  
  <p>But when I run this command I get </p>
  
  <pre><code>error: could not lock config file .git/config: No such file or directory
  </code></pre>
  
  <p>I dont know how to solve this issue. In some posts i found people asking for the report by running the command</p>
  
  <pre><code>git remote -v
  </code></pre>
  
  <p>but when i do that i get</p>
  
  <pre><code>fatal: Not a git repository (or any of the parent directories): .git
  </code></pre>
  
  <p>I wasted one day fully exploring all possible means. Kindly anyone help me to install homebrew.</p>