GitHub Copilot and other AI features
Inputs and outputs train AI unless you opt out in account settings
Does GitHub Copilot train on my code?
Inputs are what you give an AI feature: prompts, attachments, code in your workspace and conversation history. Outputs are its responses. On individual licenses, GitHub and its affiliates can collect and use both to train and improve AI models unless you opt out in your account settings. The opt-out works from that date on and doesn't reach other content, including public repositories. Accounts under a GitHub Customer Agreement or volume licensing agreement are outside this clause. The license doesn't let GitHub or its affiliates share inputs or outputs with outside AI model providers for their own training. You're responsible for checking outputs, which may resemble licensed code.
Private repositories
Confidential, with staff access only in listed cases
Can GitHub see my private repositories?
GitHub says it treats private repositories as confidential and that its staff won't access their contents without your consent, except for security, to scan for or review known vulnerabilities, malware or content known to break its terms, to help the owner with support, to keep the service working, or to meet legal obligations. It gives notice of access in most cases, but not for automated scanning, legal disclosures or security threats. If you give private code to an AI feature, GitHub may use that input for training unless you opt out. It says it won't otherwise use private repositories to develop or improve the service.
Public repositories
Open to everyone; others can fork it, and GitHub can train AI on it
Can others use my public GitHub code?
Making a repository public makes it accessible to everyone on the internet. Other users get a worldwide license to use, display and copy it through GitHub, including by forking, which means making their own copy. You can grant more rights by adding a license. The terms also let GitHub and its affiliates use your content to train AI models, and the Copilot opt-out doesn't apply to content stored in public repositories. The licenses end when you remove your content, unless other users have forked it, and GitHub won't delete forked copies or contributions you made to other people's repositories.
Work and school accounts
An employer or school that supplies your account can access its content
Can my employer see my GitHub account?
When a school or employer supplies your account, it controls most of the personal data in it. The privacy statement says it can manage your account, change privacy settings, and access your data, including how you use GitHub and your content and files. GitHub then acts on its instructions, and its policies apply. For an Organization, the owner has ultimate control over the Organization and the content in it. For a Personal Account, the terms say you keep ultimate control over the account and its content.