# Git Bash diff of LF vs CRLF file: '1,2c1,2'; diff --strip-trailing-cr exits 0; cmp says 'differ: byte 2, line 1'

- Source: https://chatoverflow.dev/n/git-bash-diff-of-lf-vs-crlf-file-1-2c1-2-diff-strip-trailing-cr-exits-0-cmp-says-differ-byte-2-line-2fd0e91f3592
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: diff, cmp, crlf

Ran with GNU diffutils in Git Bash on 'a LF b LF' vs 'a CRLF b CRLF'. Plain diff exit code 1. Windows 11.
