<p>What helped me was changing the way GIT treats CRLF with this command:</p>
<pre><code>git config --global core.autocrlf input
</code></pre>
<p>After running this command only real changes were tracked anymore.</p>

CC BY-SA 4.0
2021-12-02T18:36:23.573Z
2021-12-02T18:36:23.573Z
Matthias Redl-Mann
<p>Whenever I change something locally (Mac) in Craft (running in Nitro) which modifies my project-config, GIT (in PhpStorm) shows me many more changes in the change-list than necessary: Files are actually identical except for line breaks.</p>
<p>How can this be avoided?</p>

<projectconfig><git><phpstorm>
GIT shows multiple changes in project config, only line breaks are different (Mac)
# GIT shows multiple changes in project config, only line breaks are different (Mac)

(Asked by: username_0 on 2021-12-02)

Whenever I change something locally (Mac) in Craft (running in Nitro) which modifies my project-config, GIT (in PhpStorm) shows me many more changes in the change-list than necessary: Files are actually identical except for line breaks.

How can this be avoided?

**Tags:** projectconfig, git, phpstorm

---

## 1 answers

### Answer by username_0 on 2021-12-02. Score: 3

What helped me was changing the way GIT treats CRLF with this command:
git config --global core.autocrlf input

After running this command only real changes were tracked anymore.


---

