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

Is the entire working copy “at one branch”?

From
Stefan Monov <logixoul@gmail.com>
Date
Oct 28, 2016, 15:01 UTC
Message-ID
<CAJtFkWs4qYCqnbJD+zCRCAW3teczb4CdvncvYoMN_VvthJGr=w@mail.gmail.com>

This is a very basic question but maybe I just don't know how to phrase my query well enough to find an answer.

Let me begin with a SVN example. SVN doesn't have a "current branch" as a property of a working copy, so I'll give the example with revisions instead. Consider a working copy with the dirs `foo` and `bar` in it. In SVN one can `update` foo to an earlier version, but keep `bar` at `HEAD`.

Is it possible in an analogical git working copy to checkout one branch in dir `foo` without changing the branch checked out in `bar`?

If not, why not?

TIA, Stefan Monov

Next: Alexei Lozovsky
Message 1 of 3 in “Is the entire working copy “at one branch”?”
  1. Stefan MonovOct 28, 2016
  2. Alexei LozovskyOct 29, 2016
  3. Stefan MonovOct 31, 2016

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.