How to resolve 'Remote Origin already exists' issue in GitHub|Complete Tutorial

preview_player
Показать описание
The "remote origin already exists" error typically occurs when you're trying to add a remote repository to your local Git repository, but a remote with the name "origin" already exists. "Origin" is the default name that Git assigns to the remote repository where you initially cloned or fetched your code from.

This error can happen for a few reasons:

Multiple Remotes: You might be trying to add another remote with the name "origin" even though one already exists. Each remote must have a unique name.

Repository Already Cloned: If you've cloned a repository already, the remote named "origin" is automatically set up. You don't need to add it again.

Renaming Origin: If you renamed the default "origin" remote to something else, trying to add a new remote with the "origin" name will result in this error.
Рекомендации по теме
Комментарии
Автор

Thanks so much bhai my problem solved.

bmishra