# Removing dos end of line

1 messages from 2010-10-14 to 2010-10-14. Participants: Mathieu Malaterre.
Thread: https://gitlist.dev/t/25445

## Mathieu Malaterre, 2010-10-14 10:51

Subject: Removing dos end of line
Message-ID: <AANLkTimCXs_eORsZKPx69sLk4jgHMY419qOH1DEMPQRF@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimCXs_eORsZKPx69sLk4jgHMY419qOH1DEMPQRF%40mail.gmail.com

```
Hi,

  I am trying to rewrite a git history and remove dos end of line. I used:

git filter-branch --tree-filter dos2unix -- --all

However it still report:

error: You have local changes to 'bla.c'; cannot switch branches.

Here is my setting:

$ cat ~/.gitconfig
...
[core]
	autocrlf = input


Should I be doing something else to remove dos file from history ?

Thanks,
-- 
Mathieu

```
