error: Your local changes to the following files would be overwritten by merge: docker-compose.yml code example
Example 1: error: Your local changes to '.gitignore' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge.
git status
git stash
git status
Example 2: 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