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

What is the mechanism of a git checkout?

From
Mmastermindxs <mastermindxs@gmail.com>
Date
May 28, 2009, 15:21 UTC
Message-ID
<23764024.post@talk.nabble.com>

does a git checkout pull the contents of a branch? how does it physically separate files in your working directory from other branches?

The speed of which it works leads me to the logical conclusion that the files in the working directory are all there for all branches and git simply only shows you the files of the active branch.

Can anyone shed more light on the underlying mechanisms of git checkout maybe even branch and merge as well?

thanks -diego www.greyrobot.com

-- 
View this message in context: http://www.nabble.com/What-is-the-mechanism-of-a-git-checkout--tp23764024p23764024.html
Sent from the git mailing list archive at Nabble.com.
Next: Peter Harris
Message 1 of 4 in “What is the mechanism of a git checkout?”
  1. mastermindxsMay 28, 2009
  2. Peter HarrisMay 28, 2009
  3. Sitaram ChamartyMay 29, 2009
  4. Jakub NarebskiMay 29, 2009

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.