title: Exclude file in Visual Studio from git Commit by default
body: <p>Several developers are working on a project and each one has their own connection string in Web.Config.
  Every once in a while (usually few hours!!) a developer forgets to exclude web.config from their commit and soon everyone has to go though the cycle of getting an error, discovering that its because of wrong connection string, and correct it.
  The reason is that when people choose to commit their changes, VS adds all changes to commit. They can exclude it, but they forget.</p>
  
  <p>Is there a way to exclude a file from commits <strong>By Default</strong>?
  Please note that this is different from excluding the file from repository which can be done in .gitignore.</p>