A fewer days ago, I showed you an astonishing caller ChatGPT feature disposable to paying users. Plus, Pro, and Team tier users tin present constituent Deep Research astatine an full GitHub repo and get backmost investigation reports.
As I showed, this capableness helps velocity up the process of coming up to velocity connected existing codebases. You mightiness request to bash this if you get a merchandise from different developer oregon if you're brought onto a task and request to larn the codebase quickly. It's besides bully for reviewing your ain codebase and refreshing yourself connected however sections enactment -- particularly if you've moved connected to different things for a portion and are present coming backmost to the archetypal code.
I promised I'd amusement you however to bring a codebase into GitHub specifically for investigation by Deep Research. That's what we're astir to bash successful this article.
Moving my codification into GitHub
To show this, I'm moving My Private Site into GitHub. My Private Site is simply a freemium WordPress plugin with astir 20,000 progressive users I've been moving connected for astir a decade. WordPress, for humanities reasons, uses SVN alternatively of GitHub arsenic a codification repository, truthful I haven't truly had a request to enactment My Private Site into GitHub.
Also: I enactment GitHub Copilot's AI to the trial - its mixed occurrence astatine coding baffled me
But fixed the accidental to execute heavy investigation connected it, I decided to acceptable it up. I'll spell done that process with you here.
Getting started with GitHub Desktop
Before we start, let's clarify immoderate things. Git is simply a distributed mentation power strategy that runs connected a programmer's section computer. GitHub is simply a cloud-based work that stores an tremendous room of open-source and proprietary coding projects. Those projects are moved into GitHub (the unreality service) utilizing Git (the tool).
Real programmers lone usage Git connected the bid line, wherever it's known arsenic git. No existent programmer would situation to capitalize git. Real programmers bid git via a scope of options, creating specialized bid lines that bash their bidding. Failure to usage git connected the bid enactment volition effect successful your real-programmer paper being revoked by the International Society of Programmers Who Are Smarter Than You.
Also: How I utilized GitHub Spark to physique an app with conscionable a one-sentence AI prompt
I americium seemingly not a existent programmer. I mightiness arsenic good get that retired of the mode earlier the comments erupt successful disdainful RPs (real programmers) mocking my deficiency of command-line acuity. I don't usage Git via the bid line. I don't similar it. I judge humans near the cave agelong agone and adopted graphical idiosyncratic interfaces arsenic tools of civilized society.
I, therefore, similar utilizing GitHub Desktop, which is simply a point-and-click mentation of Git for those not worthy of the rubric existent programmer. And yes, my authoritative real-programmer paper has been revoked. I tin unrecorded with it.
You tin download GitHub Desktop here.
Once you've launched GitHub Desktop, either motion successful to your GitHub relationship oregon make one. I've agelong had a GitHub relationship for different projects, truthful I conscionable signed in.
How to make a GitHub repository
Next, I created a repository successful the GitHub unreality for my codebase. Here it tin beryllium a small confusing. Even though I didn't person an existing repo for My Private Site, I chose "Add an Existing Repository from your Local Drive…" due to the fact that I was going to instrumentality that codebase and crook it into a repo.
GitHub Desktop is really beauteous astute astir this. Once it realizes there's nary GitHub information for the folder selected, it volition springiness you an mistake and connection you the enactment to make a repo. Click the nexus highlighted by the greenish arrow shown below.
That volition contiguous the Create a New Repository dialog. Here, I named my repo (all lowercase, with dashes betwixt words), added a abbreviated description, told it the section way to the codification connected my computer, and near the remainder as-is.
I didn't request to play with the README, license, oregon disregard options due to the fact that I'm utilizing this repo for AI analysis, not for root power and collaboration.
It's present I should enactment this nonfiction describes what you request to bash to fto your codification beryllium examined by ChatGPT Deep Research. This is decidedly not a broad how-to-set-up-GitHub article.
How to determination the codebase to GitHub
It's clip to determination your codification up to GitHub.
Here's a cautionary note: If you've kept your codification private, uploading it to GitHub is sending your codification to a unreality service. GitHub offers some backstage and nationalist repositories, but you're technically giving Microsoft entree to your code. Microsoft owns GitHub.
Now, spell up and deed Publish.
At this point, you'll person the accidental to marque your repo nationalist oregon private. When you link ChatGPT to your repo, you'll beryllium passing on your entree rights, truthful you tin fto ChatGPT analyse a backstage repository.
Also: How to usage ChatGPT: A beginner's usher to the astir fashionable AI chatbot
That said, I ran into immoderate issues with Deep Research accessing my code, and 1 of the things ChatGPT asked maine was whether my codification was public. My instrumentality connected that is: if your codification is backstage and you person each your credentials and connector acceptable up (more connected that later), you tin astir apt enactment connected a backstage repo.
Since My Private Site is unfastened source, I unchecked "Keep this codification private."
Looking astatine your caller repository
If everything worked, you'll spot a caller option: "View connected GitHub." Click it.
That volition bring you to your recently created GitHub repo. Here's mine.
Now that your repo is up, instrumentality enactment of its designation. You tin find that successful the precocious near country of the GitHub screen. For My Private Site, it's davidgewirtz/my-private-site (without immoderate spaces).
How to acceptable up the ChatGPT transportation
Now it's clip to power to ChatGPT. The adjacent 2 screenshots are the aforesaid arsenic what I showed you successful this nonfiction connected the feature. But to get to the adjacent configuration step, you'll request to bash what's shown successful the screenshots.
First, alteration your exemplary to o3 and benignant successful the punctual precisely arsenic I did. You tin astir apt tweak this implicit time, but if you person the $20-per-month Plus tier, you're lone going to beryllium allowed 10 queries into Deep Research per month, truthful cutting and pasting is your friend.
Next, click the small caret adjacent to Deep Research.
Now, make the nexus betwixt your ChatGPT relationship and your GitHub account. Go up (if you dare) and springiness Skynet -- uh, I mean the AI -- support to entree your GitHub relationship features.
Next, you'll beryllium asked which GitHub relationship should get the ChatGPT connector. I person two, truthful I got this prime screen. You mightiness skip this surface if you lone person 1 account.
Now it's clip for much permissions. This time, you're giving support to entree either each your account's repos oregon conscionable one. I selected lone the my-private-site repo.
And now, theoretically, Deep Research successful ChatGPT volition beryllium connected to your repo. Theoretically. In practice, excavation required different step.
What to bash if ChatGPT can't find your repo
GitHub indexes repositories, and if ChatGPT doesn't amusement your repo arsenic available, it astir apt means GitHub hasn't indexed your caller repository yet. That's what happened here.
I should person been capable to prime oregon benignant successful my afloat repo sanction (remember, davidgewirtz/my-private-site), but ChatGPT wasn't capable to find it.
Also: I tested ChatGPT's Deep Research against Gemini, Perplexity, and Grok AI to spot which is best
To hole this, spell backmost to your GitHub relationship and benignant successful the bid drawstring shown astatine the apical of this screenshot. Obviously, alteration the substance successful bluish to lucifer your repo name.
The bid is fundamentally repo:(repo followed by a colon), followed by the afloat sanction of your repo, followed by a abstraction and the connection import. This volition archer GitHub you'd similar it to scale your repository.
As you tin see, GitHub confirmed it was present indexing my repository.
I brewed myself a well-deserved cupful of java arsenic a mode to springiness GitHub clip to scale my repo. Once I finished the past drop, I went backmost to ChatGPT, dropped down the Deep Research menu, and recovered my recently created repository.
Have amusive with Deep Research
You're acceptable to commencement utilizing Deep Research connected your repo. For a elaborate usher connected however that worked for my repo, constituent yourself to my earlier nonfiction connected the topic.
Have fun. I was beauteous blown away. You mightiness be, arsenic well.
Also: 5 reasons I crook to ChatGPT each time - from faster probe to replacing Siri
Have you tried utilizing ChatGPT Deep Research with your ain codification yet? What was your acquisition connecting a GitHub repo? Did you tally into immoderate indexing issues oregon support snags on the way? Do you similar utilizing GitHub Desktop oregon the bid enactment erstwhile mounting up your repositories? Let america cognize successful the comments below.
You tin travel my day-to-day task updates connected societal media. Be definite to subscribe to my play update newsletter, and travel maine connected Twitter/X astatine @DavidGewirtz, connected Facebook astatine Facebook.com/DavidGewirtz, connected Instagram astatine Instagram.com/DavidGewirtz, connected Bluesky astatine @DavidGewirtz.com, and connected YouTube astatine YouTube.com/DavidGewirtzTV.
Get the morning's apical stories successful your inbox each time with our Tech Today newsletter.