Perfect, Selvaneyas! Now I see what happened: ``` https://huggingface.co/spaces/selvaneyas/Edu-MentorAI ``` --- ### ✅ Let’s Fix This and Add GitHub Properly #### ✅ Step 1: Remove the incorrect `origin` (Hugging Face) ```bash git remote remove origin ``` #### ✅ Step 2: Add GitHub as `origin` Replace this with your actual GitHub URL: ```bash git remote add origin https://github.com/selvaneyas/Edu-MentorAI.git ``` ✅ This command now links `origin` to GitHub correctly. --- ### ✅ Step 3: Verify both remotes Run: ```bash git remote -v ``` You should now see: ``` origin https://github.com/selvaneyas/Edu-MentorAI.git (fetch) origin https://github.com/selvaneyas/Edu-MentorAI.git (push) hf https://huggingface.co/spaces/selvaneyas/Edu-MentorAI (fetch) hf https://huggingface.co/spaces/selvaneyas/Edu-MentorAI (push) ``` --- ### ✅ Step 4: Push your code ```bash git push origin main # Push to GitHub git push hf main # Push to Hugging Face ``` --- Now everything is clean: * `origin` = GitHub ✅ * `hf` = Hugging Face ✅ --- ### 🔐 Option 1: **Access Token (Recommended & Easiest)** ### 🔑 Option 2: **SSH Key (Advanced, one-time setup)** --- ## ✅ Let's go with **Option 1: Use a Hugging Face Access Token** ### 🔧 Step-by-Step: #### ✅ 1. **Generate an Access Token** * Go to: [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens) * Click **“New token”** * Name: `Git Push` * Role: `Write` or `Admin` * Copy the token (keep it safe like a password!) --- #### ✅ 2. **Push using the Access Token** Use this format when pushing: ```bash git push https://@huggingface.co/spaces/selvaneyas/Edu-MentorAI ``` 🔁 For example: ```bash git push https://hf_A1b2C3d4e5f6G7h8I9J0@huggingface.co/spaces/selvaneyas/Edu-MentorAI ``` > Replace `hf_A1b2C3...` with your **real token** --- ### ✅ Or set it once using `git remote set-url`: ```bash git remote set-url hf https://@huggingface.co/spaces/selvaneyas/Edu-MentorAI ``` Then push as usual: ```bash git push hf main ``` --- ## 🔐 Option 2 (Advanced): SSH Setup (Optional) If you prefer SSH instead of tokens, I can guide you on setting up an SSH key and linking it with Hugging Face. ---