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> /diff

All changes in the current directory are displayed as a diff — similar to git diff.


When to Use It#

ScenarioWhy it helps
After Copilot modified multiple filesSee all changes at a glance
Before committingCatch any unintended changes
Session recapUnderstand what was done

Tip#

If you review the diff and don’t like what you see, use /rewind to undo the last change.


How to Review Code Changes in GitHub Copilot CLI【/diff】
https://naonao-na.com/en/posts/github-copilot-cli-diff/
Author
[object Object]
Published at
2026-03-28