Changing the branch changes the files in the working tree.
HEAD is stored in .git/HEAD
.git/HEAD
Changes are inspected by e.g.:
git show HEAD git show HEAD~ git show HEAD~2 ...