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

question git & branches

From
BGBen Greear <greearb@candelatech.com>
Date
Aug 29, 2005, 08:07 UTC
Message-ID
<4312C24E.4000803@candelatech.com>
Hello!
I've been trying out git and have some questions...

I installed the latest snapshot of git, pulled down the kernel (2.6.13-rc7), and started hacking. What fun...got myself a git patch and was happy.

Then, decided I wanted to branch off my changes from the main tree so I could maintain the patch-set separate for this particular feature.

I created a new branch 'ben_dev_rfcnt'.
Now, I also have another patch that I wanted to pull into git.
Before merging this, I created another branch 'foo'.

I changed to this branch foo and imported my patch and resolved the conflicts, etc.

I think I'm missing something fundamental though... I wanted to change to the ben_dev_rfcnt branch to build a kernel without my additional patch. git branch ben_dev_rfcnt seems to change it fine, but all of the changes for repository 'foo' are also still here.

Am I completely missing how branches work, or just missing a few commands?

Thanks, Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
Next: Martin Langhoff
Message 1 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.