I have a git repository. There has been 3 total contributors to the repository and one contributor used Windows from a certain commit so the file (file.html
) has Windows newlines (\r\n
) instead of Unix newlines (\n
).
How do I remove all the \r
s from the file and from all of the commits?
I'm not trying to change my local settings, I want to remove those \r
s from the file in all commits.
EDIT: Solved, the command is to use `it filter-branch -f --tree-filter 'dos2unix file.txt' -- --all