Categories
Tags
Agent Mode Astro Auto Accept Automation Camping changelog Chat clear CLI Code Actions 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 Localization Mac Mention Meteor Shower Mode Switching model Nara Prefecture NES NoAdapterInstalled Node.js nvm OpenAI params plan PowerShell Prompt props Public Key Authentication Python Redirect Reference Rename research rewind SEO Settings 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
113 words
1 minutes
How to Review Code Changes in GitHub Copilot CLI【/diff】
Overview
After having Copilot rewrite a bunch of files, ever found yourself thinking “wait, what exactly changed?”
Opening each file one by one to check is tedious. The /diff command gives you a quick overview of all changes.
Usage
Run this in Copilot CLI:
/copilot> /diffAll changes in the current directory are displayed as a diff — similar to git diff.
When to Use It
| Scenario | Why it helps |
|---|---|
| After Copilot modified multiple files | See all changes at a glance |
| Before committing | Catch any unintended changes |
| Session recap | Understand what was done |
Tip
If you review the diff and don’t like what you see, use /rewind to undo the last change.
Related Posts
How to Review Code Changes in GitHub Copilot CLI【/diff】
https://naonao-na.com/en/posts/github-copilot-cli-diff/
