Copilot CLI /rewind: undo file changes in 3 steps
Copilot went one step too far? Roll the session back to an earlier prompt and, if you like, put back the files Copilot changed.
Source: GitHub Docs: roll back changes in Copilot CLI · GitHub Docs: plans for GitHub Copilot