Search code examples
gitgithubcommitgithub-desktop

How do I "undo" undo in Github Desktop?


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?


Solution

  • As illustrated in this article, the GitHub Desktop interface has an undo button, but no "redo" action.

    https://i.sstatic.net/ZsjAj.png

    If a commit has been undone, you would need to use git reflog as in here to get it back.