I'm confused with the git checkout
command to switch branch. I'm in my other branch, I made changes on a file, but I didn't "git add
". I switched to my master
branch, and I see the changes on that file.
Why does the changes carried to the master branch when I made the change on the other branch?