15.8 C
New York
Sunday, June 15, 2025

Buy now

How to move your codebase into GitHub for analysis by ChatGPT Deep Research – and why you should

Just a few days in the past, I confirmed you an incredible new ChatGPT function accessible to paying customers. Plus, Professional, and Group tier customers can now level Deep Analysis at a whole GitHub repo and get again evaluation studies.

As I confirmed, this functionality helps velocity up the method of coming on top of things on current codebases. You would possibly want to do that in the event you purchase a product from one other developer or in the event you’re introduced onto a venture and must be taught the codebase rapidly. It is also good for reviewing your personal codebase and refreshing your self on how sections work — particularly in the event you’ve moved on to different issues for some time and are actually coming again to the unique code.

I promised I might present you the best way to carry a codebase into GitHub particularly for evaluation by Deep Analysis. That is what we’re about to do on this article.

Shifting my code into GitHub

To reveal this, I am transferring My Non-public Website into GitHub. My Non-public Website is a freemium WordPress plugin with about 20,000 lively customers I have been engaged on for a few decade. WordPress, for historic causes, makes use of SVN as a substitute of GitHub as a code repository, so I have not actually had a must put My Non-public Website into GitHub.

However given the chance to carry out deep evaluation on it, I made a decision to set it up. I will undergo that course of with you right here.

Getting began with GitHub Desktop

Earlier than we begin, let’s make clear some issues. Git is a distributed model management system that runs on a programmer’s native laptop. GitHub is a cloud-based service that shops an infinite library of open-source and proprietary coding tasks. These tasks are moved into GitHub (the cloud service) utilizing Git (the software).

Actual programmers solely use Git on the command line, the place it is often called git. No actual programmer would dare to capitalize git. Actual programmers command git by way of a spread of choices, creating specialised command traces that do their bidding. Failure to make use of git on the command line will lead to your real-programmer card being revoked by the Worldwide Society of Programmers Who Are Smarter Than You.

See also  OpenAI’s new voice AI model gpt-4o-transcribe lets you add speech to your existing text apps in seconds

I’m apparently not an actual programmer. I’d as nicely get that out of the way in which earlier than the feedback erupt in disdainful RPs (actual programmers) mocking my lack of command-line acuity. I do not use Git by way of the command line. I do not prefer it. I consider people left the cave way back and adopted graphical consumer interfaces as instruments of civilized society.

I, subsequently, desire utilizing GitHub Desktop, which is a point-and-click model of Git for these undeserving of the title actual programmer. And sure, my official real-programmer card has been revoked. I can stay with it. 

You possibly can obtain GitHub Desktop right here.

As soon as you have launched GitHub Desktop, both sign up to your GitHub account or create one. I’ve lengthy had a GitHub account for different tasks, so I simply signed in.

Easy methods to create a GitHub repository

Subsequent, I created a repository within the GitHub cloud for my codebase. Right here it may be somewhat complicated. Despite the fact that I did not have an current repo for My Non-public Website, I selected “Add an Present Repository out of your Native Drive…” as a result of I used to be going to take that codebase and switch it right into a repo.

GitHub Desktop is definitely fairly good about this. As soon as it realizes there is no GitHub knowledge for the folder chosen, it gives you an error and give you the choice to create a repo. Click on the hyperlink highlighted by the inexperienced arrow proven under.

That can current the Create a New Repository dialog. Right here, I named my repo (all lowercase, with dashes between phrases), added a brief description, instructed it the native path to the code on my laptop, and left the remaining as-is.

I did not must play with the README, license, or ignore choices as a result of I am utilizing this repo for AI evaluation, not for supply management and collaboration.

It is right here I ought to word this text describes what that you must do to let your code be examined by ChatGPT Deep Analysis. That is undoubtedly not a complete how-to-set-up-GitHub article.

Easy methods to transfer the codebase to GitHub

It is time to transfer your code as much as GitHub.

See also  Text-to-speech with feeling - this new AI model does everything but shed a tear

This is a cautionary word: For those who’ve saved your code non-public, importing it to GitHub is sending your code to a cloud service. GitHub presents each non-public and public repositories, however you are technically giving Microsoft entry to your code. Microsoft owns GitHub.

Now, go forward and hit Publish.

At this level, you will have the chance to make your repo public or non-public. While you join ChatGPT to your repo, you will be passing alongside your entry rights, so you may let ChatGPT look at a non-public repository.

That mentioned, I bumped into some points with Deep Analysis accessing my code, and one of many issues ChatGPT requested me was whether or not my code was public. My tackle that’s: in case your code is non-public and you’ve got all of your credentials and connector arrange (extra on that later), you may most likely work on a non-public repo.

Since My Non-public Website is open supply, I unchecked “Hold this code non-public.”

your new repository

If the whole lot labored, you will see a brand new choice: “View on GitHub.” Click on it.

That can carry you to your newly created GitHub repo. This is mine.

Now that your repo is up, be aware of its designation. Yow will discover that within the higher left nook of the GitHub display. For My Non-public Website, it is davidgewirtz/my-private-site (with none areas).

Easy methods to arrange the ChatGPT connection

Now it is time to change to ChatGPT. The subsequent two screenshots are the identical as what I confirmed you on this article on the function. However to get to the subsequent configuration step, you will must do what’s proven within the screenshots.

First, change your mannequin to o3 and sort within the immediate precisely as I did. You possibly can most likely tweak this over time, however if in case you have the $20-per-month Plus tier, you are solely going to be allowed 10 queries into Deep Analysis per thirty days, so chopping and pasting is your buddy.

Subsequent, click on the little caret subsequent to Deep Analysis.

Now, create the hyperlink between your ChatGPT account and your GitHub account. Go forward (in the event you dare) and provides Skynet — uh, I imply the AI — permission to entry your GitHub account options.

See also  DeepMind’s Mind Evolution: Empowering Large Language Models for Real-World Problem Solving

Subsequent, you will be requested which GitHub account ought to get the ChatGPT connector. I’ve two, so I received this alternative display. You would possibly skip this display in the event you solely have one account.

Now it is time for extra permissions. This time, you are giving permission to entry both all of your account’s repos or only one. I chosen solely the my-private-site repo.

And now, theoretically, Deep Analysis in ChatGPT will likely be linked to your repo. Theoretically. In observe, mine required one other step.

What to do if ChatGPT cannot discover your repo

GitHub indexes repositories, and if ChatGPT would not present your repo as accessible, it most likely means GitHub hasn’t listed your new repository but. That is what occurred right here.

I ought to have been capable of choose or sort in my full repo identify (keep in mind, davidgewirtz/my-private-site), however ChatGPT wasn’t capable of find it.

To repair this, return to your GitHub account and sort within the command string proven on the prime of this screenshot. Clearly, change the textual content in blue to match your repo identify.

The command is mainly repo:(repo adopted by a colon), adopted by the complete identify of your repo, adopted by an area and the phrase import. This can inform GitHub you’d prefer it to index your repository.

As you may see, GitHub confirmed it was now indexing my repository.

I brewed myself a well-deserved cup of espresso as a strategy to give GitHub time to index my repo. As soon as I completed the final drop, I went again to ChatGPT, dropped down the Deep Analysis menu, and located my newly created repository.

Have enjoyable with Deep Analysis

You are prepared to begin utilizing Deep Analysis in your repo. For an in depth information on how that labored for my repo, level your self to my earlier article on the subject.

Have enjoyable. I used to be fairly blown away. You is perhaps, as nicely.

Have you ever tried utilizing ChatGPT Deep Analysis with your personal code but? What was your expertise connecting a GitHub repo? Did you run into any indexing points or permission snags alongside the way in which? Do you favor utilizing GitHub Desktop or the command line when establishing your repositories? Tell us within the feedback under.


You possibly can comply with my day-to-day venture updates on social media. Make sure to subscribe to my weekly replace publication, and comply with me on Twitter/X at @DavidGewirtz, on Fb at Fb.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com/DavidGewirtzTV.

Get the morning’s prime tales in your inbox every day with our Tech At present publication.

Supply hyperlink

Related Articles

Leave a Reply

Please enter your comment!
Please enter your name here

Latest Articles