If you have modified a file that was committed previously and haven't committed the recent changes, and you want to switch branches, you'll encounter an error like: "error: Your local changes to the following files would be overwritten by checkout: t...