On Jul 3, 9:51 am, PJ Weisberg <[email protected]> wrote:
> On Monday, July 2, 2012, jack sparrow <[email protected]> wrote:
> > From the git repo, i created a new branch1 with the existing tag tag1.
> > i made some changes to a set of files, filea, fileb. If i run git
> > status
> > it shows that the filea and fileb are modified, so far good. Now i
> > created
> > another branch2 with the existing tag tag2. If i go toa filea, the
> > file has
> > the changes i made in the branch1. since the changes i made are
> > commited,
> > i was expecting the file to be without the modfications that was made
> > in
> > other branch. am i missing something ?
>
> Maybe, but it's hard to say without knowing specifically what commands you
> ran.
>
> --
> -PJ
>
> Gehm's Corollary to Clark's Law: Any technology distinguishable from
> magic is insufficiently advanced.
--------
git clone remote-repo
git tag
master
tag1
tag2
tag3
git checkout -b tag1 tag1
vi filea
vi fileb
make changes to filea fileb
git checkout -b tag2 tag2
vi filea - here i still see the changes made in branch tag1
i was hoping the file to be having the same contents
as in the tag2, excluding the un committed changes
from tag1
-------
i hope i am little bit clear.
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.