Fellow Stranger
Fellow Stranger

Reputation: 34013

Changes (erroneously) reflected in multiple branches

What is going here? Any idea why I no longer can do isolated changes in a branch, without them being reflected in other branches?

Upvotes: 0

Views: 94

Answers (1)

Divyanshu Maithani
Divyanshu Maithani

Reputation: 14986

When you switch branches, the uncommitted changes will be reflected in the new branch.

In order to isolate your changes in the new_feature branch use git stash or commit your changes before switching your branch to master.

Upvotes: 1

Related Questions