Without the -f flag, this will never happen.
But what would you do with your branch without being able to push it?
Rebase is basically saving your branch history and serial usage history. It's safe when you are the only thing merging into this code, or if you do it only locally.
Otherwise, make sure that you are on the same page with all other participants before rebooting.
source share