I am new to CLion, and also git. Currently, I am learning using git for management of code versions.
My question is that I added some code in a branch named "new"; and then I wanted to review my code in "master" branch, but after using Checkout in CLion to switch to "master" branch, I found that the added code also show up in the "new" branch.
So, if I want to switch to the "master" branch, and get its status and context as the last time I visited, instead of bringing the modifications done in other branch, is there a way to do it?
Your answer and guide will be appreciated!