Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-02T18:36:23.573Z
Answers.LastActivityDate: 2021-12-02T18:36:23.573Z
Answers.UserDisplayName: Matthias Redl-Mann
Body: <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>
  
Tags: <projectconfig><git><phpstorm>
Title: GIT shows multiple changes in project config, only line breaks are different (Mac)
ThreadText: # 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.
  
  
  ---
  
  