git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Removing dos end of line

From
Mathieu Malaterre <mathieu.malaterre@gmail.com>
Date
Oct 14, 2010, 10:51 UTC
Message-ID
<AANLkTimCXs_eORsZKPx69sLk4jgHMY419qOH1DEMPQRF@mail.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
Message 1 of 1 in “Removing dos end of line”
  1. Mathieu MalaterreOct 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.