I really like this warning. I think an additional enhancement could be adding a link or button to guide users to push their branch, or open the SCM view.