Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the CRLF line separator in the code

Tags:

git

newline

I was committing a file when PyCharm showed me this error.

You are about to commit CRLF line separators to the Git repository

What is this line separator? Is there some strange character in my code? How can I find and manage it?

like image 598
user2297037 Avatar asked Nov 14 '14 14:11

user2297037


1 Answers

You can find the separator using command:

git grep -Il $'\r'
like image 160
Ducaz035 Avatar answered Oct 12 '22 08:10

Ducaz035