Azure DevOps git Fatal: Authentication failed
In DevOps Azure during switching Azure AD for organisation in Azure DevOps (VSTS) or in situation, when git repository keep the same name but users get new identity, error “fatal: Authentication failed for…” may appear.

Few steps needed to be done in Azure DevOps (VSTS) git repository prior applying changes in your local machine. Please go to Azure DevOps -> Repos, select any repository you need to clone and click “Clone” button. After cloning popup appear on the screen click on “Generate Git Credentials”:

In next screen click “Copy” icon to save your token in memory (or highlight whole token and use Ctrl+c). That’s all we need from Azure DevOps at this point and it is time to do some changes at your computer.
Click on search bar near Windows “start” button on the screen and search for “Credential manager” – searching windows components like this I found quick and productive. Alternatively you may go to Control Panel -> User Accounts -> Credential Manager.

Locate git reference in list of all credentials, click on expand icon (on the right) and on expanded section button “Edit” should be present, click on it:

On next screen popup with title “Edit Generic credential” will appear. This is the place where we will be using copied to memory personal token from Azure DevOps repos. It may sound confusing and not related but repos token need to be copied to Password text field so highlight all text in that field and use magic of Ctrl+V.

Click “Save” and here you go… Git repository authentication is fixed.