title: How would I set a policy of accepting the incoming file for a particular file in .git for the repository?
body: <p>We have a npm module with a <code>package-lock.json</code> and we would like to set it that we always accept the incoming changes on this file as a policy across the team.</p>
  
  <p>I realise that I can set <code>.gitattributes</code> in the repo to use a merge strategy for a particular file e.g.</p>
  
  <p><code>package-lock.json merge=myStrategy</code></p>
  
  <p>... however this references a strategy which has to be setup by each user since it lives in <code>.git/config</code>.</p>
  
  <p>Is there a way to have it set so that it live in source control? This way anyone working on the project will automatically adopt the practice.</p>
  
  <p>I have already found a strategy for accepting incoming that should work without having to include it in the path as described <a href="https://stackoverflow.com/a/27999588/199">in this answer</a> but this is not kept in source control and requires that new users run a command before use.</p>