gitazureazure-devopstfvcgit-tf

Unable to complete git-tf checkin --deep due to access denied error


I need to migrate source code with full history from one TFVC repository to another but I am unable to complete the process due to a credential issue with git-tf.

I used git-tfs to create a full copy of the source TFVC repo (including all history) on my local computer. I then attempted to follow the instructions here https://blog.simontimms.com/2013/04/02/importing-a-git-repository-into-tfs/ but when I run the "git-tf checkin --deep" command I am prompted to enter credentials, and after entering the correct username and password (as copied and pasted from KeePass) I am ultimately met with "Access denied connecting to TFS Server https://dev.azure.com/MYORGANIZATION. You either provided a wrong password or basic authentication is not configured for your account."

I have found articles mentioning removing credentials from the windows credentials list in order to solve this, however I have been unable to find any credentials stored there which reference git or devops at all.

Additionally, I have thus far been unable to identify where I might go to enable basic authentication. I cannot find such a setting in the DevOps Project Settings or in the DevOps Organization Settings. Is this a setting buried someplace in Azure AD? I've been googling for hours with no success to try and figure out where I need to go to change this setting.

I am the project administrator for both repos (as well as an Azure AD admin), and all the security and permission settings in the destination are set to "allow".


Solution

  • The solution is to create a Personal Access Token (PAT), then configure git-tf to use your regular username and then use the PAT as the password.