From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Merge the changes

Merge the changes

At this point the refactoring is done. We have a markdown document that lists everything the agent changed which we can check into source control. We can also review the chat history in the chat panel to see the decisions that were made along the way. One thing I really like here is this summary document. It's far more detailed than a typical commit message. Right now these changes live on a temporary branch inside the isolated work tree. They're not yet in our main working branch. You'll notice that there's a commit button here in the source control panel. You can use it to commit changes to that temporary branch but in most cases you won't need to because Copilot provides a simpler path. If you go look at the bottom of the chat panel it says there are three files ready to merge. Gives me a summary of the changes. I can also click here to view all the changes and when we're ready we can click the apply button to bring the changes back into the main project effectively merging the…

Contents