SSMS Plugin should warn if user clicks push before committing any changes.
Using the SCA SSMS plugin, the Version Control tab makes it very clear that you need to click "Push", but not so clear that you should commit changes before pushing. It would be helpful if it warned that you haven't commiited anything rather than just quietly saying "Push Successful".
-
AdminKendra (Admin, Redgate) commented
Hi.
Thanks for this suggestion. I have myself managed to confuse myself by pushing without committing, and then being confused by the empty branch at the origin.
This is an interesting one to think through, because it is possible that changes might be committed to the current branch outside of SQL Change Automation. It might be changes to application code, or example. Running "Git Push" in SQL Change Automation, like any Git client, would still push these changes.
I am curious if you think this would matter, or if it would be enough to simply surface when a "Git push" doesn't find anything to push (committed by any Git client to the local git repo)?