From the course: AI Coding Agents with GitHub Copilot and Cursor
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Reverting agent edits
From the course: AI Coding Agents with GitHub Copilot and Cursor
Reverting agent edits
- [Speaker] As you start working with these AI coding agents, they will make a lot of mistakes or for post-code that looks sound at the time, but turns out to not work exactly as you intend to. And you'll often find yourself accepting edits only to realize, "No, I shouldn't have accepted that. I need to revert back." The good news is both GitHub copilot and cursor provide rollback for the agent feature. So if the agent did something and you don't like it, you can always revert back to a previous state, and this works very much like Git would revert back to an earlier state. So here in GitHub copilot, I made a small change. I asked the agent to add a difficulty setting from one to five that reveals or hides letters, and I've accepted these changes. Now that I look at it, I realize, "No, I want to do it a different way." And if that's the case, I can scroll back up to where I made my request and click on this X here in the top corner. When I hover over it, it tells you what it does…
Contents
-
-
-
What is an AI coding agent?2m 31s
-
(Locked)
Accessing agent mode in GitHub Copilot4m 28s
-
(Locked)
Accessing agent mode in Cursor1m 26s
-
(Locked)
Understanding how chat, edit, and agent modes differ5m 10s
-
(Locked)
Defining agent scope4m 53s
-
(Locked)
How to accept all or individual agent edits2m
-
(Locked)
Reverting agent edits3m 9s
-
(Locked)
Running agent command line prompts3m 4s
-
(Locked)
Adding custom instructions for GitHub Copilot4m 26s
-
(Locked)
Adding custom instructions for Cursor5m 18s
-
-