I have 2 branches, A and B, and both were created from master. On A I created a file FileA, did some commits, pushed to remote. While that's in PR, I swapped to B, created a new file FileB and did some work; however all I did was add it to Git, it hasn't had a commit yet.
In IntelliJ, when I swapped back to A to do some fix for the PR, File B appears in the project tree and inside the commit window. Why is that? How to resolve this?