I wasn't very smart when I did this: I worked on my computer on a project - always on master branch with a last commit that I forgot to push to the remote (GitHub).
My computer needed to be repaired and so I cloned the project on another computer (without the last commit) and started working on this one, again working on master only. I pushed the changes to the remote.
But know I can't push from computer 1 because obviously "the remote contains work that you do not have locally".
What is the best way now not to lose any changes? A soft reset and then pushing the changes to a new branch?