title: core.excludesfile and user.excludesfile in git
body: <p>What is the difference between <code>core.excludesfile</code> and <code>user.excludesfile</code> in git repository?</p>
  
  <p>I am using following code to exclude some of my configuration files but did not exlude my configuration file.</p>
  
  <pre><code>$ echo 'globals/js/config.js' &gt; .gitignore_local
  $ git add .gitignore_local
  $ git config user.excludesfile .gitignore_local
  </code></pre>
  
  <p>When I pull files from my local folder using </p>
  
  <pre><code>$ git pull [remote_path_alias] master
  </code></pre>
  
  <p>But <code>config.js</code> file update.</p>