You can switch branches with changes in files, you might want to add them:
git add *
and then maybe you also need to commit them:
git commit -m "message"
or, you can something not covered in the course:
to stash them, so you can switch branches