I want to enforce (i.e. throw an error and fail) whenever I do a git merge with staged changes. Much in the same why a git rebase will not work if unstaged changes exist. Is there a way to do this?
The goal of this is to enforce a workflow like:
git stash
git pull #or git merge
git pop