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

Re: Git detects changes after new branch created and switched even though files have not been changed

From
Jakub Narębski <jnareb@gmail.com>
Date
Aug 6, 2014, 16:02 UTC
Message-ID
<53E2517E.8020301@gmail.com>
In-Reply-To
<a2546f9109674431820b7a98f9570433@BL2PR05MB180.namprd05.prod.outlook.com>
W dniu 2014-08-06 17:04, Jared Brank pisze:
Show 6 quoted lines
> Running on Windows with latest version of Git. 1.9.4. Also had this
> trouble with 1.8.2 but upgraded hoping it would fix the problem.
>
> When I do a reset on several files, it says they were successfully
> reverted they still show up as modified when I do a git status. In
> this case it's just a newline character at the end of the file.

The problem might be the options (gitconfig and gitattributes) affecting how Git deals with end-of-line characters.

-- 
Jakub Narębski
Previous: Jared Brank
Message 2 of 2 in “Git detects changes after new branch created and switched even though files have not been changed”
  1. Jared BrankAug 6, 2014
  2. Jakub NarębskiAug 6, 2014

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.