I am just learning Git, going through a tutorial. I am in branch seo_title and I have uncommitted changes to file mission.html. I did git checkout master expecting
git checkout master
This is the normal behavior. If you don't want the modified files on your newly checked out branch, then stash them. Like this.
# on branch dev $ git stash $ git checkout master # do stuff on master # back to dev $ git checkout dev $ git stash pop