I have been assigned the task of migrating repositories from one Azure DevOps organization to another.
The source repositories I need to move are TFVC - they want it also migrated to Git.
I found the tool git-tfs which looks like it will do everything I need.
After installing the tool I followed the directions and ran the following command to test to see if I can connect and it is having the following issue :
C:emp>git tfs list-remote-branches https://testpoint.visualstudio.com:8080/tfs/TestPoint2013
TF400324: Team Foundation services are not available from server https://testpoint.visualstudio.com:8080/tfs/TestPoint2013.
Technical information (for administrator):
Unable to connect to the remote server
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 16.107.42.18:8080
I assumed that it needs some kind of user/pw and I found this -
To clone a TFVC repository on Azure DevOps, you should:
Enable alternate credentials. Go to "My profile"->"Security"-> Enter data and "Enable alternate credentials"
use the command following this pattern (where 'yourLogin' and 'yourPassword' was defined in the previous step) git tfs clone https://dev.azure.com/{organization} $/project/folder --username=yourLogin --password=yourPassword
Unfortunately the feature to enable alternate credentials is turned off so I can not perform the above.
I generated a personal access token and tried to use it but it did not like that either.
I also tried playing with the ssh keys. I created a key, added the public key to the source Azure DevOps account and then added the following to the config file in the .ssh directory -
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
User git
IdentityFile ~/.ssh/ado
Is the host name correct?
Note that using the same ssh key I can perform Git clones in the same ADO organizations Git repositories.
What am I missing to allow me to successfully connect to the tfs repositories?
Here is a link to the git-tfs tool - https://github.com/git-tfs/git-tfs/blob/master/README.md
question from:
https://stackoverflow.com/questions/66068532/migrating-tfvc-repo-to-git-between-two-accounts-connection-issues-to-clone-the 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…