Manish Kumar
Manish Kumar

Reputation: 568

Git asks a password for a wrong URL , whenever I tried to excute git clone,git pull

Git asks a password for a wrong URL always , whenever I tried to excute git clone,git pull or git fetch.

Password for 'http://[email protected]:8080':

it is wrong url,how to remove this url or discard this url.

Upvotes: 0

Views: 177

Answers (1)

VonC
VonC

Reputation: 1324947

It is easier to fall back to the command-line, and type:

cd c:\path`\to\repository
git remote set-url origin https://remote/TFS/repository/URL

Replace <https://remote/TFS/repository/URL> by the actual repository URL.

If you are using Team Explorer, you can edit origin from the Repository Settings:

https://learn.microsoft.com/en-us/azure/devops/repos/git/media/git-config/remotes.png?view=azure-devops

Upvotes: 3

Related Questions