r/learnprogramming • • Mar 26 '26

GitHub will use your repos to train AI models

Important update

On April 24 we'll start using GitHub Copilot interaction data for AI model training unless you opt out. 

Remember to opt-out fellows engineers.

Important correction:

As many of you noted, the title of the post is misleading. This update will impact only "GitHub Copilot interaction" and not "all your repos".

873 Upvotes

139 comments sorted by

•

u/desrtfx Mar 26 '26 edited Mar 26 '26

For clarification the original message was:

Hi there,

We're updating how GitHub uses data to improve AI-powered coding tools. From April 24 onward, your interactions with GitHub Copilot - including inputs, outputs, code snippets, and associated content - may be used to train and enhance AI models unless you opt out.

If you previously opted out of the setting allowing GitHub to collect this data for product improvements, your preference has been retained - your choice is preserved, and your data will not be used for training unless you opt in.

This approach aligns with established industry practices and will enable our models to deliver more context-aware AI coding assistance. We have tested this with Microsoft interaction data and have seen meaningful improvements, including increased acceptance rates in multiple languages.

Please review your settings and choose whether your interactions with Copilot can be leveraged for training AI models before this update goes into effect on April 24.

To opt out or adjust your settings:

  • Go to GitHub Account Settings
  • Select Copilot
  • Choose whether to allow your data to be used for AI model training.

To learn more, please refer to our blog post and FAQ.

Please reach out to our support team if you have any questions about this update. Thank you for your continued use of Github Copilot.

Sincerely,
The GitHub Team

Received it by email yesterday.

Seems that it targets Copilot interactions, not all repos.

Direct opt out link for those who can't/don't want to follow the handful of steps listed.

Still, the recommendation is to opt out.

→ More replies (5)

16

u/kurokabau Mar 26 '26

Where's the opt out

22

u/desrtfx Mar 26 '26

In your github profile - right side of your screen where your account is is a part "Github Copilot Settings". There is the "opt out" somewhere quite down.

2

u/Ok-Lifeguard-9612 Mar 26 '26

Click on the link in the github popup

5

u/SourceScope Mar 26 '26

Whats a “github popup”?

400

u/WinXPbootsup Mar 26 '26

Me when my code poisons the model

80

u/cjcs Mar 26 '26

Me when I start using public static void main in Python

14

u/close_my_eyes Mar 26 '26

This reminds me of when, years ago, re-captcha would ask you to type the letters found in 2 different images. I figured they were trying to use us for free labor in training their ai by giving us one that they didn't have the answer to. I could usually figure out which one it was and I would put in some junk text for that one. It made it me laugh.

5

u/Easy_Charge898 Mar 26 '26

Evil but love it

6

u/mumBa_ Mar 26 '26

Now think back to Pokemon Go where we were literally recording annotated locations. We basically mapped the world in 3D.

1

u/[deleted] Mar 27 '26

[removed] — view removed comment

3

u/WinXPbootsup Mar 27 '26

me when my code does 100 points of mental damage to the poor unfortunate soul reading it

483

u/vootehdoo Mar 26 '26

Jokes on them, my code is shit anyway

67

u/beencaughtbuttering Mar 26 '26

God DAMN it I opened the thread to make this same crack LOL

15

u/SourceScope Mar 26 '26

Its an original joke. First time i see it!

11

u/INFLATABLE_CUCUMBER Mar 26 '26

Better yet, if you do have good code, make sure the agent doesn’t see it. Only turn on visibility to your bad code.

Even better, start releasing shit projects onto GitHub en masse. Use AI to ramp production up on your shit code that will fuel more AI production.

You’re not replacing us that fast!

2

u/MarioShroomsTasteBad Mar 26 '26

Likewise, I'm doing my part to poison the well.

1

u/florinandrei Mar 26 '26

and created by AI anyway

1

u/TinyMavin Mar 26 '26

I was going to say, “Jokes on them, my code is all AI anyway”

1

u/U_SHLD_THINK_BOUT_IT Mar 26 '26

Which means it will be used to train it what not to do.

1

u/JoshBillion Mar 26 '26

This should hurt 😂

182

u/IsThisWiseEnough Mar 26 '26

So my ai generated code will feed other ai. Let it rain sh*t.

4

u/519meshif Mar 26 '26

Pretty much what I said when I gave Jules access to my Gemini repos

2

u/Obzurdity Mar 27 '26

Yeah I was about to say all I'm doing these days is backing up my AI memory and project files there anyway

81

u/NorskJesus Mar 26 '26

Already did

0

u/nmkd Mar 27 '26

The Opt Out button has been there since the beginning so idk why people are bringing this up now

33

u/[deleted] Mar 26 '26

[removed] — view removed comment

1

u/Statcat2017 Mar 27 '26

You might want to check they haven’t automatically opted you back in after this message.

-3

u/mokdemos Mar 26 '26

But you use reddit and have a cell phone, make it make sense.

19

u/Laruae Mar 26 '26

"You already have the Gonorrhea, why worry about HIV?"

74

u/Comprehensive_Mud803 Mar 26 '26

So GitHub will use my bugs and millions of others to train their AI model. Sounds like a solid plan to me. A recipe for disaster in the making.

5

u/[deleted] Mar 26 '26

[removed] — view removed comment

2

u/Comprehensive_Mud803 Mar 26 '26

I still have to move my stuff, and adapt the CI system along the way.

59

u/Fumano26 Mar 26 '26

In the title you say they use my Github repo and two lines later you quote they use copilot interactions 🤡🤦.

14

u/Gilthoniel_Elbereth Mar 26 '26

How is this so low? It’s only a problem if you are using Copilot

13

u/Just_Another_Scott Mar 26 '26

They were doing that at least 5ish years ago. Private repos were excluded at that time.

14

u/veleso91 Mar 26 '26

They can use my dogshit code, idgaf

7

u/Kevdog824_ Mar 26 '26

This is when you create the biggest repo imaginable with absolute garbage data to gain a controlling share of the training data

7

u/Little-Flan-6492 Mar 26 '26

my repo is all generated with AI , please take it

6

u/productiveaccount4 Mar 26 '26

Garbage in garbage out

5

u/StoneCypher Mar 26 '26

(hanging in noose) First time?

5

u/StinkButt9001 Mar 26 '26

Did you not even read the part you linked?

Public repos are already eligible to be included in training data. That's not new.

What is new is that your interaction with Copilot is going to be used

5

u/ElCuntIngles Mar 26 '26

Yeah, so many posts by people with no reading comprehension skills.

They should all give up trying to learn to program; reading comprehension is an essential requirement for the job.

4

u/ItzDubzmeister Mar 26 '26

I love that everyone is coming to this thread to say joke’s on them since our code is shit… either software engineers have low self confidence (yep sounds about right for me) or there are just a lot of bad devs out there (yup matches as well lol).

7

u/jobohomeskillet Mar 26 '26

Enjoy my readme file. I misspelled restaurant.

6

u/who_you_are Mar 26 '26

When the product is free you are the product...

Not a huge surprise there

4

u/SourceScope Mar 26 '26

Tbh i think the original plan is corporations pay for github

Private users dont, so they are more inclined to use it for a business

3

u/[deleted] Mar 26 '26

how can u turn this off

3

u/shitty_mcfucklestick Mar 26 '26

I really loved how there were no active links in the email to that settings page. Petty anti-patterns to try to discourage people changing it.

3

u/jlanawalt Mar 26 '26

I thought they already used public repos to trail their AI.

The announcement is stating they will also train their AI on your use of the AI. If you don’t like Copilot, why use it? If you use it, you want it to be better.

3

u/YetMoreSpaceDust Mar 26 '26

Don't worry guys, I've been poisoning the well for decades!

2

u/Philluminati Mar 26 '26

Can you link to where this message is coming from? Do they explain anything else?

3

u/desrtfx Mar 26 '26

I got it as an email from github yesterday.

And yes, I double verified the authenticity.

The message was:

Hi there,

We're updating how GitHub uses data to improve AI-powered coding tools. From April 24 onward, your interactions with GitHub Copilot - including inputs, outputs, code snippets, and associated content - may be used to train and enhance AI models unless you opt out.

If you previously opted out of the setting allowing GitHub to collect this data for product improvements, your preference has been retained - your choice is preserved, and your data will not be used for training unless you opt in.

This approach aligns with established industry practices and will enable our models to deliver more context-aware AI coding assistance. We have tested this with Microsoft interaction data and have seen meaningful improvements, including increased acceptance rates in multiple languages.

Please review your settings and choose whether your interactions with Copilot can be leveraged for training AI models before this update goes into effect on April 24.

To opt out or adjust your settings:

  • Go to GitHub Account Settings
  • Select Copilot
  • Choose whether to allow your data to be used for AI model training.

To learn more, please refer to our blog post and FAQ.

Please reach out to our support team if you have any questions about this update. Thank you for your continued use of Github Copilot.

Sincerely,
The GitHub Team

2

u/haddock420 Mar 26 '26

Doesn't bother me really. I made the code public so this seems like fair game.

2

u/jokenking488 Mar 26 '26

Good. I can contaminate their models with my half-assed not runnable code.

2

u/interyx Mar 26 '26

That seems like a bad idea.

When AI trains on AI generated content the model collapses.

2

u/Prestigious_Boat_386 Mar 26 '26

Are we supposed to believe they didn't already? Like how tf did they train them before then?

2

u/bgmrk Mar 26 '26

Gitlab is free, open source and self hostable!

2

u/AbdullahMRiad Mar 26 '26

only if you use copilot

2

u/lasercat_pow Mar 26 '26

do you honestly think the big genai llms haven't already been training on github repos?

2

u/badjayplaness Mar 27 '26

lol let them train on my repos. It’ll set back agi for years

1

u/brubsabrubs Mar 27 '26

the hero we need

2

u/nanihikaru01 Mar 27 '26

All my variables are :any anyways

2

u/BizAlly Apr 01 '26

Me realizing my messy code is now training AI models… good luck to the next generation

2

u/Subnetwork Mar 26 '26

The resistance is strong with the lot of you but the resist will be futile

1

u/earthceltic Mar 26 '26 edited Mar 26 '26

If anyone has a problem with this like I did and is at the liberty of choosing which software you use for your projects (versus being in a soulless company that forces github on you), you might not be aware of Gitea. It's basically a self hosted free and open source GitHub clone which works identically within VSCode and other environments. I've been very much enjoying Gitea since I set it up a few months ago 

1

u/No_Dog_3790 Mar 26 '26

The AI will recoil and curl up like a roach sprayed with RAID when it touches my code.

1

u/QVRedit Mar 26 '26

Is training on “Buggy and incomplete Software” such a good idea ?

1

u/cwaterbottom Mar 26 '26

Is that how they punish ai models that they hate?

1

u/biotech997 Mar 26 '26

Seems like people don’t read, this is only applicable if you interact with Copilot. Although not to say it doesn’t already scrape all public repos on GitHub, but that’s a separate matter.

1

u/DavidRoyman Mar 26 '26

You sure have opted out, but your data is in their hands and you have to believe they really won't use it.

Pinky promise.

1

u/lKrauzer Mar 26 '26

There is an opt out option.

1

u/red_nick Mar 26 '26

OP, tell us you failed the comprehension part of English at school without telling us you failed the comprehension part of English at school

1

u/kamilc86 Mar 26 '26

Yeah, it's a tricky situation. On one hand, it feels inevitable that these models will get trained on pretty much everything available. But the quality of that data, both good and bad code, is going to be a real issue. I think we'll start seeing models just parroting what they've seen from other LLMs, like Copilot or Cursor, pretty soon. It's already kind of happening.

1

u/team_lloyd Mar 26 '26

don’t worry guys mine are all public, that should hold these models back another year from becoming effective devs

1

u/Ok-Technology-6289 Mar 26 '26

My code will plague the model

1

u/kgmeister Mar 26 '26

Good luck with my early-draft shitty elif nested loops lol

1

u/je386 Mar 26 '26

Guys, you can opt-out for non-commercial accounts and commercial accounts are not affected in the first place.

1

u/elPappito Mar 26 '26

I genuinely feel sorry for the AI they're going to train on my GitHub repos.

1

u/Crypt0Nihilist Mar 26 '26

I pity the fool.

1

u/DizzySaxophone Mar 26 '26

So github is going to train AI on tons of vibecoded projects. Sounds like a brilliant idea

1

u/Sibexico Mar 26 '26

It's possible to turn if off. Other thing, since my software released under MIT license, it can be used by AI without restrictions anyway... :)

1

u/Gold_Challenge178 Mar 26 '26

Yeah I have some repo of todos, tic-tac-toe

1

u/leoreno Mar 26 '26

Honestly I just assumed this was already happening

1

u/[deleted] Mar 27 '26

Trash In, Trash out

1

u/lobby-crasher Mar 27 '26

Copilot chat and copilot help work together, unless I can't see fine lines. That's indeed your every repo.

1

u/Cozybear110494 Mar 27 '26

Lol, fetching AI with AI slop generated code repos is like eating your own sh*t

1

u/MrHall Mar 27 '26

wait, if my repo is non-public, all the code it reads into the model will train the model anyway? is that right?

1

u/midasweb Mar 27 '26

github's settings around copilot and data usage are worth checking, especially the opt out options if privacy is a concern.

1

u/__ihavenoname__ Mar 27 '26

What if the code on my repo is already from AI

1

u/codeasm Mar 27 '26

Ive already been opted out for some reason. Also, i already started moving my main repos to other platforms. Mostly due to microsoft owning github. I do use copilot here and there, any code that based on that, can happily poison copilot if they still train on my shitty projects.

1

u/Jacksonvoice Mar 27 '26

Great use AI spaghetti code to train with. Great idea.

1

u/thelvhishow Mar 27 '26

I’ve already blocked it and transferring to CodeBerg.com

1

u/Ordinary-Yoghurt-303 Mar 27 '26

I assumed they already did. Not surprised.

1

u/Educational_Employ52 Mar 30 '26

Does this apply to private repos too?

1

u/DonkeyBonked Apr 16 '26

Oddly, when I first signed up for GitHub Copilot, I actually just assumed they already did this and my first thing after making my account was to look for this setting and disable it.

1

u/BitsAndBobs304 Mar 26 '26

Why would that be bad?

0

u/owjfaigs222 Mar 26 '26

I don't mind honestly. If I can help making AI better with my shitty code then they can use it all they want.

-2

u/Dissentient Mar 26 '26

I don't care.

0

u/ForJava Mar 26 '26

Me neither. If by the end this leads to better models then great!

-1

u/aqua_regis Mar 26 '26

GitHub will use your repos to train AI models

That's absolutely not what the actual message says.

The message says something different:

From April 24 onward, your interactions with GitHub Copilot - including inputs, outputs, code snippets, and associated content - may be used to train and enhance AI models unless you opt out.


Don't use clickbait titles with misinformation.

0

u/Brilliant-8148 Mar 26 '26

That absolutely means it's going to train on your code! 

1

u/aqua_regis Mar 26 '26

On your Copilot interactions (and logically on the code you create with it).

I wouldn't trust them any further than I can throw them, but still, the original message doesn't say what you claim it does.

0

u/Brilliant-8148 Mar 26 '26

I'm not the op and it absolutely means it will train on your repo.

0

u/coffee_math Mar 26 '26

That’s literally even worse, what’s inputs and outputs? Text goes in, code comes out. Associated content = already existing code (context). They want to not only train on code but also the flow of how a developer does their job/interacts with their code.

1

u/aqua_regis Mar 26 '26

When the developer uses Copilot. When they don't, no.

What's so difficult in the message from github that was verbatim quoted?

2

u/[deleted] Mar 26 '26

[removed] — view removed comment

2

u/ZorbaTHut Mar 27 '26

And, I mean, I put the MIT license on there for a reason. I frankly don't really care about the license part, whatever. Go wild, have fun.

2

u/[deleted] Mar 26 '26

[removed] — view removed comment

2

u/e1m8b Mar 26 '26

I mean... when you use a system or platform someone else is paying for you follow the way they do things I suppose.

-1

u/ElCuntIngles Mar 26 '26

"Quietly" sending you an email and displaying a prominent message at the top of GitHub that you have to dismiss.