Hacky workaround: push multiple intermediate commits so you don't push as many times each time. This, of course, will not save you if it is one huge fix that cannot push.
There are two main ways to choose a commit:
master~15
, master~10
, master~5
(15, 10 and 5 are fixed before master
)
Use gitk
to manually find them; when you select a commit in history, SHA1 is automatically placed in the clipboard of the middle-click clip.
source share