error: remote origin already exists. [How to Solve]

Problem: an error is reported because the remote origin exists

git remote add origin *************
error: remote origin already exists.

Solution:

Delete the remote origin first and add it again

git remote rm origin
git remote add origin ************

Read More: