title: fatal: could not unset 'branch.master.remote'
body: <p>I am trying to remove git remote. I have just removed heroku remote url with the command </p>
  
  <pre><code>$ git remote rm heroku
  </code></pre>
  
  <p>but when I try to use this on remote for bitbucket(origin). It fails with an error</p>
  
  <pre><code>git remote rm origin        
  fatal: could not unset 'branch.master.remote'
  </code></pre>
  
  <p>where's when listing remote with </p>
  
  <pre><code>$ git remote -v
  </code></pre>
  
  <p>clearly mentions </p>
  
  <pre><code>origin  git@bitbucket.org:username/myapp.git (fetch)
  origin  git@bitbucket.org:username/myapp.git (push)
  </code></pre>
  
  <p><strong>.git/config</strong> </p>
  
  <pre><code>[core]
      repositoryformatversion = 0
      filemode = true
      bare = false
      logallrefupdates = true
  [branch "master"]
  [branch "static-pages"]
  [remote "origin"]
      url = git@bitbucket.org:myUserName/mY_Hidden_App.git
      fetch = +refs/heads/*:refs/remotes/origin/*
  </code></pre>