title: Git Config excludesfile for just a branch
body: <p>I wanted to exclude a file called config/dbconfig.js in my public branch which I use to push to github but still be able to push from master to my noester.com git repo to push to production. I changed the config file to this:</p>
  
  <pre><code>[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    excludesfile = +info/exclude
  [remote "nodester"]
      url = *** My Git Repo ***
      fetch = +refs/heads/*:refs/remotes/nodester/*
  [branch "public"]
    excludesfile = +info/exclude_public
  </code></pre>
  
  <p>I made sure to remove the .gitignore file and I am using the .git/info/exclude file for the the general excludes and was hoping to use the .git/info/exclude_public to exclude that one file so when I merge to public that file doesn't merge as well as not push to github.</p>
  
  <p>If I do the following it will still add the file to git even in the public branch. So I am thinking ether I have the syntax wrong or it's not possible.</p>
  
  <pre><code>$ git checkout public
  $ git add .
  $ git status
  # On branch public
  # Changes to be committed:
  #   (use "git reset HEAD &lt;file&gt;..." to unstage)
  #
  #   new file:   config/dbconfig.json
  #
  </code></pre>
  
  <p>If this isn't possible is there a better way to deal with database configs you do not want to get out on a open Github project without running two git repositories and manually merge between them?</p>