Skip to content
Windows 🟡 Intermediate

How to Connect GitHub to Copilot Code

Richard
Written by
Richard
7 min read
Windows 11 laptop showing the Copilot app beside a code editor, with the heading Connect GitHub to Copilot across the lower left.
Windows 11 laptop showing the Copilot app beside a code editor, with the heading Connect GitHub to Copilot across the lower left.

Connecting GitHub to Copilot Code links your GitHub account to Copilot Code (Preview), the tool in the Copilot app that builds projects on your PC from plain-language descriptions. The connection is optional. If you have a GitHub account, you can use it to work on an existing project or ask questions about its code. Copilot Code can also propose changes on GitHub for your review.

Microsoft announced the connection on December 4, 2026, as part of the preview for Windows Insiders. Microsoft has not yet published many details about the on-screen steps. This post covers what is confirmed, marks what is not, and explains what to check if the option is missing.

⚡ Quick Answer

To connect GitHub to Copilot Code, open the Copilot app, select Code, and sign in with a personal Microsoft account that has a Microsoft 365 Premium or Pro subscription. Start or reopen a project, then choose the optional GitHub connection. Microsoft has not yet confirmed the exact button labels.

Advertisement

What the GitHub connection does in Copilot Code

Copilot Code works without GitHub. You can describe a tool, answer the questions Copilot Code asks, and watch a live preview as it builds. GitHub adds a way to bring in code that already lives in a repository (a stored project on GitHub).

Microsoft names three uses for the connection:

  • Work on an existing project.
  • Ask questions about that project’s code.
  • Have Copilot Code propose changes on GitHub for your review.

The third use matters most. Copilot Code proposes changes for you to review. Microsoft’s announcement does not state that changes go live without your approval.

Advertisement

What you need before you connect GitHub

📝Good to KnowCheck these requirements first. Each one can stop the option from appearing.
  • A GitHub account. Microsoft says the connection is for people who already have one.
  • A personal Microsoft account with a Microsoft 365 Premium or Pro subscription. Copilot Code (Preview) requires it. A work or school account does not meet this requirement.
  • Windows Insider access (the Microsoft program that gives early testers new Windows builds) in the United States or Canada. Copilot Code (Preview) is available to Windows Insiders in those two countries.
  • The Copilot app. Copilot Code lives inside it, under Code.

Microsoft has not published a minimum Windows 11 build number for Copilot Code yet, so this post does not give one.

The confirmed material does not mention administrator rights for any part of this process. No step below is known to need them.

How to connect GitHub to Copilot Code

These steps connect your GitHub account to Copilot Code. Microsoft has not published the exact button names for the GitHub step, so those steps describe what to look for instead of a label. Expect the wording to change while the preview rolls out.

  1. Open the Copilot app. Use Start or search to find it. If the app is missing, see the link to the Copilot app removal guide at the end of this post.
    Copilot
    Copilot
  2. Select Code. This is the Copilot Code (Preview) area. If you see no Code entry, your PC has not received the feature yet. See the next section.
  3. Sign in with your personal Microsoft account. It needs a Microsoft 365 Premium or Pro subscription to use Copilot Code.
  4. Start a new project, or reopen one from Recents. Recents holds your saved Copilot Code projects.
  5. Look for the GitHub connection option. Microsoft calls it an optional GitHub connection. The exact label and location are not confirmed.
  6. Choose to connect your GitHub account. Copilot Code needs your GitHub account to reach the project you want to work on.
  7. Complete any sign-in or permission prompt that appears. The screens you see here are not documented yet, so read each prompt before you approve it.
  8. Select the existing project you want to work on. The connection exists so that Copilot Code can use a project you already have.
  9. Ask Copilot Code a question about the code, or describe a change. For changes, Copilot Code proposes them on GitHub so you can review them.
⚠️WarningOnce you finish the steps above, Copilot Code should show your GitHub account. If it does not, go back to step 5 and look again for the GitHub option. Do not try a Registry Editor change (a tool for editing Windows settings directly) or a setting from another guide. None of the confirmed material points to one.

If the GitHub option does not appear

Microsoft is rolling out Copilot Code in stages, so the option may not appear on every PC yet. Some PCs will get it later, even when they meet every requirement. A missing option does not always mean something is wrong with your setup.

Advertisement

Work through these checks in order:

  1. Confirm you use a personal Microsoft account, not a work or school account.
  2. Confirm the account has a Microsoft 365 Premium or Pro subscription.
  3. Confirm you are in the United States or Canada and part of the Windows Insider program.
  4. Check that Code appears in the Copilot app. If Code is missing, the GitHub connection cannot be there either.
  5. Update Windows and the Copilot app, then check again later.

If Code appears but you cannot find GitHub, the connection may not have reached your PC yet. Microsoft has not said what the option looks like when it is not available, so there is no confirmed error message to match.

If the Copilot app itself behaves strangely, try the steps in how to refresh Copilot on Windows 11. That guide covers the Copilot side pane (the panel that opens beside your apps), so it may not match the Code area exactly.

Using an existing project with Copilot Code

GitHub is one way to bring an existing project into Copilot Code. Microsoft describes other starting points that do not need GitHub. You can attach spreadsheets, CSV files (plain-text tables), PDFs, documents, images, or presentations. You can also paste in text, or open an existing folder on your PC as the starting point.

If you only want to work on files already on your PC, you can skip the GitHub connection. Use it when the code you care about lives on GitHub.

Copilot Code saves projects on your PC along with their conversations. To find a saved project, follow these steps:

  1. Open the Copilot app.
  2. Select Code.
  3. Select Recents.

You can also export the files. In the preview, if you do not like where a change went, you can ask Copilot Code to return to an earlier version.

How to disconnect GitHub from Copilot Code

Microsoft has not published a way to disconnect GitHub from Copilot Code in the material available so far. Whether there is a Disconnect button inside Copilot Code is not confirmed. This post does not list one.

Because the connection is optional, you can stop using it by not choosing the GitHub option when you start a project. Microsoft’s announcement does not describe any other effect on your GitHub account or repositories.

Privacy and what Copilot Code remembers

Connecting an account gives Copilot Code access to the project you choose. Read each permission prompt before you approve it, and connect only the project you want to work on. The announcement does not explain how Copilot Code stores GitHub data. Until Microsoft says more, treat the permission prompts as the only guide.

Projects and conversations are saved on your PC, as described above. For clearing what Copilot keeps about you, see how to delete Copilot memory. That guide covers Copilot memory and may not cover Copilot Code project history, so check what each one removes before you rely on it.

What to do next

Check back as Microsoft expands the rollout, since the GitHub option’s label and location may change before the preview ends. To manage other links from Copilot, read how to turn Microsoft Copilot Connectors on or off, which is a separate setting.

If you decide you do not want Copilot on this PC, see how to disable Windows 11 Copilot and what breaks when you turn off Copilot in Windows 11, or follow how to remove the Copilot app from Windows 11 to remove the app entirely.

The source for the feature details is Microsoft’s Windows Insider announcement of Copilot Code (Preview).

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments