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

Git status shows modifications after cloning

From
Jjateeq <jawad_atiq@hotmail.com>
Date
Mar 8, 2010, 15:32 UTC
Message-ID
<27821819.post@talk.nabble.com>
Hello,

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.

Origin:
[core]
	repositoryformatversion = 0
	filemode = true
	bare = true
Clone:
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = /home/ruggeddoc/Documents/Primary/InstallationGuides/RuggedBackbone
[branch "master"]
	remote = origin
	merge = refs/heads/master
[branch "jateeq.2010-03-08.09-49"]
	remote = origin
	merge = refs/heads/master

I haven't tried unsetting the logallrefupdates (I want to log updates). Does anyone think this is a config file issue? If it is, any idead on how to solve it? If not, what can I do so that git status, or git diff do not show modified files right after cloning?

NOTE: On the origin, the only branch that exists is master, whereas after
I'm done cloning, I create another branch and then checkout that branch's
head right from the start. 

Thank you for your help, Jawad

-- 
View this message in context: http://old.nabble.com/Git-status-shows-modifications-after-cloning-tp27821819p27821819.html
Sent from the git mailing list archive at Nabble.com.
Next: Ilari Liusvaara
Message 1 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.