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

Re: Git status shows modifications after cloning

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Mar 8, 2010, 15:40 UTC
Message-ID
<20100308154021.GA27413@Knoppix>
In-Reply-To
<27821819.post@talk.nabble.com>
On Mon, Mar 08, 2010 at 07:32:25AM -0800, jateeq wrote:
Show 8 quoted lines
> 
> After cloning from a local repository, a git status shows me that each file
> in the repository has been modified - I don't want this to happen. I have
> searched around the net, and there is stuff about this happening if the
> configurations for the original and the clone are not the same, with
> specific mention of the variable core.autocrlf. However, this variable is
> unspecified in both repositories, and the differences in config files is
> listed below.

At least having core.autocrlf enabled and having CRLF files in repository is known to cause problems like that. But reading the configuration, it doesn't look this is Windows system (and the rest don't tend to have core.autocrlf enabled).

The files in repository definitely should not have CRLF line endings (the proper one is just LF).

-Ilari
Previous: jateeqNext: jateeq
Message 2 of 3 in “Git status shows modifications after cloning”
  1. jateeqMar 8, 2010
  2. Ilari LiusvaaraMar 8, 2010
  3. jateeqMar 8, 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.