How to solve the Git error Git Warning: LF will be replaced by CRLF (OR)cannot stat: Filename too long on GIT PULL

Using this Methode we can solve the git file name to long and LF replace to CLF issues.
1) Set up the CRLF and the problem will “disappear.”

# Option 1:
git config --global core.autocrlf false

# Option 2:
`git config --global core.safecrlf false`

2) I am getting the below error while pulling changes from a GIT branch ….

cannot stat ‘somelongfilename.sql’: Filename too long

As a solution, I am trying to add long paths = true to gitconfig file. This is located in the system default folder and I do not have permission to edit this file.

we can solve this issue with the below command.
Used
git config --global core.longpaths true
instead of
git config --system core.longpaths true

Leave a comment

Your email address will not be published. Required fields are marked *