Suggestion: Add warning when amending a pushed commit
The "Amend Last Commit" feature is a feature that I use very often, since it is an easy way to add "one more file/change" without having to have multiple commits with the same comment. I use it for the convenience. And so do other people I work with, and have worked with in the past.
But once in a while I have already pushed the commit, but forgotten about it, and then click "Amend Last Commit". And that causes some problems, especially if other people have been doing a lot of stuff in the same branch since the commit. Now, I know that nothing is really broken, and it is not too hard to make everything right again. But since the whole thing was caused by me forgetting that I had pushed the last commit, I just think that maybe the best way to handle this would be to make it easier to avoid getting into that situation in the first place.
So, I suggest that the Commit dialog of TortuiseGit somehow warns/notifies/informs the user that the previous commit has been pushed. Preferably it should be designed/worded in such a way that:
- A completely novice user should be "scared" into not amending the commit, or at least ask a coworker first
- An "average" user should think "Ah. Thanks TortuiseGit! I had completely forgotten that I had pushed already!", or read up on how to handle it
- An "expert" user should think "Yes, I know what I'm doing", and then continue as normal
The worst case scenario for this warning message, as I see it, is that an "expert" user gets annoyed by seeing this warning. But I would say that most expert git users use the command line tool anyway.