From: Carlos Santana <neubyr@gmail.com>
To: git@vger.kernel.org
Subject: file in new branch also shown in master branch?
Date: Mon, 28 Dec 2009 16:37:08 -0600 [thread overview]
Message-ID: <92c9564e0912281437g20fe51f9ta33383791ef20385@mail.gmail.com> (raw)
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 reply other threads:[~2009-12-28 22:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-28 22:37 Carlos Santana [this message]
2009-12-28 23:25 ` file in new branch also shown in master branch? David Aguilar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92c9564e0912281437g20fe51f9ta33383791ef20385@mail.gmail.com \
--to=neubyr@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).