`composer status` improvement for unpushed changes

`composer status` now prevents overwriting Git package if changes have not been pushed. This change, if accepted would resolve #2046.

I'm happy to make further modifications to this - please be nice, it's my first Composer PR :)