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

Re: question git & branches

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 29, 2005, 18:04 UTC
Message-ID
<Pine.LNX.4.58.0508291103010.3243@g5.osdl.org>
In-Reply-To
<43134AA3.2010308@candelatech.com>
On Mon, 29 Aug 2005, Ben Greear wrote:
Show 8 quoted lines
> 
> I tried 'git checkout ben_dev_rfcnt'.  It took a few seconds and
> had no errors.  But, the files created on my other branch still
> exist in the code tree, and I still see my patch in the
> existing files..  I would expect them to go away.
> 
> I don't think I've managed to commit anything to any branch yet...  Could that
> be part of the problem?

Yes. If you haven't committed anything, then the dirty state follows you to the other branch (unless the branch differs in the dirty files, in which case "git checkout" will refuse with a hopefully quite understandable error message).

> I tried gitk -all, and get this error popup:
Double dashes: "gitk --all".
		Linus
Previous: Ben GreearNext: Jon Loeliger
Message 6 of 7 in “question git & branches”
  1. Ben GreearAug 29, 2005
  2. Martin LanghoffAug 29, 2005
  3. Alex RiesenAug 29, 2005
  4. Linus TorvaldsAug 29, 2005
  5. Ben GreearAug 29, 2005
  6. Linus TorvaldsAug 29, 2005
  7. Jon LoeligerAug 29, 2005

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.