file in new branch also shown in master branch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]