Here is scenario, my local branch is development
:
> $ git status
> On branch development
> nothing to commit, working directory clean
Here is all the branches:
> $ git branch
> configuration
> * development
> hotfix-1.2
> master
> release-1.0
Now if i do checkout to master, it shows me this:
> $ git checkout master
> error: Your local changes to the following files
> would be overwritten by checkout:
> .htaccess
> Please, commit your changes or stash them before you can switch branches.
> Aborting
Note: i put .htaccess file in .gitignore because production server has different than staging