Does not appear to be a git repository

Hi - I’ve started getting this error on every project folder I open recently. None of the project folders I’m working on are using git. How can I get rid of this error please? Do I need to connect to git to allow Cody to create embeddings? Thanks for your help!

Hello @orwellwebsolutions.
Yes, for Cody to fully comprehend your codebase, it must be linked with a remote Git repository to create embeddings.

Ah. Understood. How would I go about setting this up please? Does it need to be done for each project folder, or is it a global setting? Thanks again.

You need to do this for every project independently.

To link a remote repository, such as one on GitHub, you must first create the repository on that platform.

  1. Navigate to your local Git repository on your computer. You can do this by using the cd command in your terminal or command prompt, followed by the path to your repository.

    cd /path/to/your/repository
    
  2. Add the remote repository . This is done with the git remote add command, followed by a short name for your remote (traditionally this is called “origin”), and then the URL of the remote repository. For example:

    git remote add origin https://github.com/username/repository.git
    

    Replace https://github.com/username/repository.git with the URL of your remote repository.

  3. Verify that the remote has been added. You can do this with the git remote -v command, which will list all remotes for your repository. You should see something like this:

    origin  https://github.com/username/repository.git (fetch)
    origin  https://github.com/username/repository.git (push)
    

    This means that the remote repository has been added successfully.

Ah. Ok. That’s not going to be something I’m prepared to do. There are over 100 projects involved and none use git. I am better off not using embeddings or does this defeat the object?