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

file in new branch also shown in master branch?

From
CSCarlos Santana <neubyr@gmail.com>
Date
Dec 28, 2009, 22:37 UTC
Message-ID
<92c9564e0912281437g20fe51f9ta33383791ef20385@mail.gmail.com>
Hi,
I tried following commands to test branching:

git branch test git checkout test echo "Test branch" >> testfile git status git checkout master git add . git commit git push

The 'testfile' file shows up in 'master' as well as 'test'. I thought it would be seen only in test branch, but it is not so. Is it normal or am I missing something? I was unable to repeat same behavior again, so I am confused now. Any clues?

- CS.

Next: David Aguilar
Message 1 of 2 in “file in new branch also shown in master branch?”
  1. Carlos SantanaDec 28, 2009
  2. David AguilarDec 28, 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.