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

Re: git adds some text file as binary file by mistake

From
BSBruce Stephens <bruce.stephens@isode.com>
Date
Oct 24, 2008, 13:34 UTC
Message-ID
<80tzb2xgk5.fsf@tiny.isode.net>
In-Reply-To
<46dff0320810240630s5cbfa62esd10a9da45ce37bf8@mail.gmail.com>
"Ping Yin" <pkufranky@gmail.com> writes:
[...]
> I'm just ask this problem in general sense. So is there a general way
> to specify whether  a file is text or binary?
Yes: gitattributes(5).
Previous: Ping YinNext: Michael J Gruber
Message 4 of 7 in “git adds some text file as binary file by mistake”
  1. Ping YinOct 24, 2008
  2. Michael J GruberOct 24, 2008
  3. Ping YinOct 24, 2008
  4. Bruce StephensOct 24, 2008
  5. Michael J GruberOct 24, 2008
  6. Ping YinOct 30, 2008
  7. Robin RosenbergOct 31, 2008

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.