Authentication Failed for Git push to Azure
-
Looks like remote with the name azure already exists on your system and that remote contains the url "https://***.scm.azurewebsites.net/.git".
-
The error message says that, The remote already exists.
-
You are trying to add a remote called "azure" that it already exists in your configuration.
-
Add a new remote with new name like "newazure" with it's URL as you want.
-
Follow the below command to add new:-
git remote add newazure https://***.scm.azurewebsites.net/***.git
OR
- Remove the remote
azure
first, then add again with the path.
$ git remote rm azure
$ git remote add azure <repo-url>
Another way:
Set the azure's
url instead of adding.
$ git remote set-url azure <repo-url>