Re: git adds some text file as binary file by mistake
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Oct 24, 2008, 13:30 UTC
- Message-ID
- <46dff0320810240630s5cbfa62esd10a9da45ce37bf8@mail.gmail.com>
- In-Reply-To
- <4901C58D.4010309@drmicha.warpmail.net>
On Fri, Oct 24, 2008 at 8:54 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 10 quoted lines
> Ping Yin venit, vidit, dixit 24.10.2008 14:37: >> So what should i do if i want it added as text file? > > You should give us more detail on the file ;) > What's the extension, what's the typical content? It may be a simple > matter of specifying attributes. > Do ordinary diff and grep recognize your files as text? > > Michael >
It's just an xml file. I guess maybe there are some hidden characters at the beginning. I will figure it out later because i have no access to that file right now.
I'm just ask this problem in general sense. So is there a general way to specify whether a file is text or binary?
-- Ping Yin