error: remote origin already exists. in git code example
Example 1: fatal: remote origin already exists.
git remote rm origin
Example 2: fatal: remote origin already exists.
git remote set-url origin https://github.com/your/repository
git remote rm origin
git remote set-url origin https://github.com/your/repository