title: Git Error - key does not contain a section
body: <p>I recently transferred a git repository to a new organization. I ran the following:</p>
  
  <p><code>git remote set-url origin https://github.com/organizationname/therepo.git</code></p>
  
  <p>I am successfully pulling/pushing from the new location. But now getting the following errors every time I run a git command:</p>
  
  <pre><code>error: key does not contain a section: repositoryformatversion
  error: key does not contain a section: filemode
  error: key does not contain a section: bare
  error: key does not contain a section: logallrefupdates
  error: key does not contain a section: ignorecase
  error: key does not contain a section: precomposeunicode
  </code></pre>
  
  <p>I initially thought it had to do with my config file however those fields are present. The first lines of My <code>/.git/config</code> file looks like this:</p>
  
  <pre><code>repositoryformatversion = 0
  filemode = true
  bare = false
  logallrefupdates = true
  ignorecase = true
  precomposeunicode = true
  </code></pre>
  
  <p>In <a href="https://stackoverflow.com/questions/21624705/git-key-does-not-contain-a-section">this answer</a> it suggests to check for <code>--get-regex</code> but I do not see any reference to that in my config or <code>.gitconfig</code> files. It looks like I have 2 git config files:</p>
  
  <p><code>/usr/local/git/etc/gitconfig</code></p>
  
  <p>and:</p>
  
  <p><code>/Users/chmd/.gitconfig</code></p>
  
  <p>I tried adding those keys to <code>/Users/chmd/.gitconfig</code> file with no such luck. What step am I missing to clear out these errors? Based on previous answer and research it seems to be my config, but I'm including those fields in my gitconfig?</p>