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

Re: git checkout no longer warning about uncommitted/untracked files!

From
Ffuneeldy <marlene_cote@affirmednetworks.com>
Date
May 23, 2011, 21:05 UTC
Message-ID
<1306184704408-6396225.post@n2.nabble.com>
In-Reply-To
<1306171797211-6395441.post@n2.nabble.com>

This is with version 1.7.5.2 - it just keeps the files as modified when I checkout a different branch. The bad thing about this is that if I make a change on both branches, only the last change is kept, silently. Earlier today when I tried this new version, the first checkout failed with the error message I expected, but I cannot get it to show me that again.

private/marlene_cote/test/anroot/projects/kernel main_int $ git st # On branch main_int # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: Makefile # no changes added to commit (use "git add" and/or "git commit -a") /private/marlene_cote/test/anroot/projects/kernel main_int $ git checkout main M Makefile Branch main set up to track remote branch main from origin. Switched to a new branch 'main' /private/marlene_cote/test/anroot/projects/kernel main $ git checkout main_int M Makefile Switched to branch 'main_int' /private/marlene_cote/test/anroot/projects/kernel main_int $ git checkout main M Makefile Switched to branch 'main' v/private/marlene_cote/test/anroot/projects/kernel main $ vi Makefile /private/marlene_cote/test/anroot/projects/kernel main $ git checkout main_int M Makefile Switched to branch 'main_int'

-- View this message in context: http://git.661346.n2.nabble.com/git-checkout-no-longer-warning-about-uncommitted-untracked-files-tp6395441p6396225.html Sent from the git mailing list archive at Nabble.com.

Previous: Jeff KingNext: funeeldy
Message 4 of 8 in “git checkout no longer warning about uncommitted/untracked files!”
  1. funeeldyMay 23, 2011
  2. René ScharfeMay 23, 2011
  3. Jeff KingMay 23, 2011
  4. funeeldyMay 23, 2011
  5. funeeldyMay 23, 2011
  6. Jeff KingMay 23, 2011
  7. Marlene CoteMay 23, 2011
  8. Jeff KingMay 23, 2011

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.