error code 1 when it ended: error: Your local changes to the following files would be overwritten by checkout: .env Please commit your changes or stash them before you switch branches. Aborting 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