'Changes were detected in the master branch to work done in the sub-branch

I am using the master branch, and I created a new example branch and checked out.

After working in the example branch, I checked out to the master branch before committing, and the contents I am working on in the example branch are displayed as changed in the master branch.

As far as I know it doesn't affect different brunches.

What could have gone wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source