DraxDomax
DraxDomax

Reputation: 1068

IntelliJ-Git: Why my classes from one branch show in a checkout of another branch?

  1. I checked out master and then created a branch out of it (with checkout): patchA
  2. I made some changes, committed, pushed, even made a pull request for branch patchA
  3. Pull Request has not yet been reviewed (and not yet merged into master, of course)
  4. I then created another branch out of master (with checkout): patchB
  5. I made some changes, didn't even commit those...

*** Now, I wanted to take a look into patchA, so I checked it out - I see my changes that I pushed but also the changes I made in patchB !

Why is that? I thought the whole idea of branches is to isolate work, to make things a little neater for delivering units of work and reviewing them...

More info: When checking out patchB, I don't see the changes from patchA

Upvotes: 0

Views: 10

Answers (0)

Related Questions