Categories
Tags
Astro Automation Camping changelog clear CLI Codex compact Component Design Configuration context Context Copilot copy Ctrl+S CUDA Cursor Day Trip delegate diff Dynamic Routing Editor Error Error Fix Error Handling experimental Gemini git GitHub GitHub Copilot Google Hiking Hot Springs init Installation Iwate Prefecture Kobe Linux Mac Mention Meteor Shower Mode Switching model Nara Prefecture NoAdapterInstalled Node.js nvm OpenAI params plan PowerShell Prompt props Public Key Authentication Python Redirect research rewind SEO share Shell Execution Shift+Tab Shortcut SSH SSH config ssh-copy-id Stargazing Static Site streamer-mode Student undo Update usage Visual Studio VS Code VS2026 Windows WSL
122 words
1 minutes
How to Undo Changes in GitHub Copilot CLI【/rewind】
Overview
Ever asked Copilot to fix a file and it went in a completely unexpected direction?
No need to panic and reach for git checkout. The /rewind command rolls back the last change — both file modifications and the conversation turn.
Usage
Run this in Copilot CLI:
/copilot> /rewindAll file changes from the last turn are reverted, and the conversation is rolled back one step.
/undo Works Too
/undo is an alias for /rewind. They do exactly the same thing.
/copilot> /undoUse whichever you prefer.
Things to Note
- Only the last turn can be rewound
- To undo changes from two turns ago, you’ll need to revert manually
- Both file changes and conversation history are rolled back
Related Posts
How to Undo Changes in GitHub Copilot CLI【/rewind】
https://naonao-na.com/en/posts/github-copilot-cli-rewind/
