when i am trying to create a new branch in my local git is throwing message error: your local changes to the following file would be over written by checkout code example
Example: error: Your local changes to the following files would be overwritten by checkout:
git stash save your-file-name
git checkout master
# do whatever you had to do with master
git checkout staging
git stash pop