It's possible to git merge
even if current branch has uncommitted changes. Example:
git checkout featureA
ls >> foo
git commit -am "added featureA"
git checkout dev
ls >> bar # current branch now has uncommitted changes
git merge featureA
I wonder if it's possible to configure git to always fail as long as current branch has uncommitted changes, just to make the merge safer.