Git - Editing /git/info/exclude has no effect for SourceTree

32 Views Asked by At

I have a config file that contains settings of our project for my local machine, so i shouldn't push this config on remote, but should track changes of it's structure from remote (i guess i would merge that changes to my config when the time comes). So my options are:

  1. Add it to ignore, but it modifies a .gitignore file and i can't push it to remote because everyone should track changes.
  2. Add it to exclude file. I did. And SourceTree still shows it as modified!
  3. Just let the file be modified. Sore on an eye and i risk accidentally commit it somewhere.

I really like 2nd solution, but it doesn't work!

  • Q1: Am i wrong somewhere?
  • Q2: Why SourceTree works that way?
0

There are 0 best solutions below