I committed a working code, and was testing new code. I accidentally clicked undo, mixing the working code and the new code. Is there way to "undo" undo in Github Desktop?
As illustrated in this article, the GitHub Desktop interface has an undo button, but no "redo" action.
If a commit has been undone, you would need to use git reflog
as in here to get it back.