Fix "fatal: remote origin already exists" in Git
The alias "origin" is already registered to another remote URL in your .git/config file. Running git remote add origin <url> fails because duplicates are disallowed.
fatal: remote origin already exists
Quick Fix Checklist
- Inspect existing remote URL: git remote -v
- Update the existing URL: git remote set-url origin <new-url>
- Or delete old origin first: git remote remove origin && git remote add origin <new-url>