Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseGit, ignore line endings

Tags:

tortoisegit

I am looking for a way to prevent TortoiseGit from flagging files as changed when they have Unix line endings. It is just tough to check if remote files have changed when you FTP download a folder, they show up as changed often because of the LF version that comes down. I'm on Windows, the repos are CRLF, but as I said when they change on the server they end up as LF.

like image 296
Adam J Nowak Avatar asked Jan 03 '23 19:01

Adam J Nowak


1 Answers

  1. Right click in that repository, TortoiseGit -> Settings
  2. Turn local AutoCrlf OFF and apply the setting enter image description here

Extra ref.

Read Dealing with line endings - Per-repository settings,

then try Dealing with line endings - Refreshing a repository after changing line endings

like image 94
Yue Lin Ho Avatar answered Mar 10 '23 10:03

Yue Lin Ho