0
votes

I try to push git repository to Azure Repos using this command git push -u origin --all, it asks for Password for 'https://[email protected]'.

Which password should I enter?
I already set SSH key and uploaded it to Azure DevOps server.

2
Check git remote using git remote -v command and make sure you have cloned using HTTPS or SSH. - Nils
Hi friend, it seems Vonc's answer helps to resolve your issue, if so, please consider accepting it as answer, see here. Just a reminder :) - LoLance

2 Answers

1
votes

You seems to have cloned the repo using https url and not the ssh one. Check the url in config file inside .git folder. You have to enter your Azure DevOps password to push the code.

0
votes

Setting an SSH key would not change anything when using an... HTTPS URL.

In your case, since you are using an HTTPS URL, the password requested would be the itzikgb0643 account password on dev.azure.com.

For SSH, see "Azure/ Use SSH key authentication".

An SSH URL would look like: [email protected]:...