Is git repo required for quest mode?

Hello,

Thank you for reaching out and for your excellent question. I can certainly understand why the Git repository requirement for Quest Mode might seem puzzling at first.

Solution:
The reply you received is technically correct. You can enable Quest Mode by initializing a Git repository in your project folder. Here are the steps:

  1. Open a terminal or command prompt within your project’s main directory.

  2. Run the command: git init

  3. (Recommended) It’s also a good practice to make an initial commit:
    git add .
    git commit -m "Initial commit"

  4. After this, the “Start now” button in Quest Mode should become active. If it doesn’t, please try restarting the Qoder IDE as you were advised.

Rationale (Why Git is Required):
You asked a great question about why we require Git, and there’s a very important reason for it. Quest Mode is designed to track your progress by monitoring the changes you make to the code. Git is the industry-standard tool for tracking code changes. We leverage it to:

  • Verify Task Completion: The IDE can use Git’s diffing capabilities (git diff) to automatically check if your solution correctly meets the quest’s objectives.

  • Provide a “Reset” Function: If you get stuck or want to start a quest over, we can use Git to safely and reliably revert your code back to the state it was in before you started the quest, without messing up your project.

So, rather than being a hurdle, the Git requirement is a core feature that makes the Quest Mode experience more robust, interactive, and safe for your codebase.

I hope this explanation helps! Please let us know if you have any more questions.