Я пытаюсь перенести проект из Azure DevOps TFVC в Azure DevOps Git со всей историей изменений, не только за последние 180 дней.На всякий случай я перенес изменения за последние 180 дней с помощью инструмента, включенного в DevOps Azure.Так что теперь у меня есть 2 репозитория в этом проекте:
- TFVC collection с {collection-name}
- Git-репозиторий с другим именем.
Я спросил здесь , и я застрял в шаге "Клонировать репозиторий в локальную папку".Я установил Git и загрузил последний выпуск инструмента GIT-TFS .
У меня есть личная и профессиональная учетная запись в DevOps Azure с {email-account}
.Проект, который я хочу перенести, находится в Личном кабинете.Я запускаю эту команду после этой официальной справки :
git tfs clone -u {email-account} -p {personal-account-password} https://{devops-username}.visualstudio.com/{collection-name}/ $/{folder-name}/ . --branches=none
Я получаю {collection-name}
и {folder-name}
из Visual Studio 2017 Pro при попытке подключенияв удаленную коллекцию.У меня есть только эта версия VS.После выполнения команды я получаю следующие выходные данные:
Initialized empty Git repository in C:/DATA/Git/.git/
TF31002: Unable to connect to this Team Foundation Server: https://{devops-username}.visualstudio.com/{collection-name}.
Team Foundation Server Url: https://{devops-username}.visualstudio.com/{collection-name}.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
The remote server returned an error: (404) Not Found.
All the logs could be found in the log file: C:\Users\{user}\AppData\Local\git-tfs\git-tfs_log.txt
И если это поможет, вот содержимое файла журнала:
2019-03-04 11:42:17.4562 [Debug] Trying to get HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\vs\Servicing\14.0
2019-03-04 11:42:17.4816 [Debug] Visual Studio 2015 detected...
2019-03-04 11:42:17.6387 [Debug] git command: Starting process: git rev-parse --show-prefix
2019-03-04 11:42:17.6744 [Debug] git stderr: fatal: not a git repository (or any of the parent directories): .git
2019-03-04 11:42:17.6744 [Debug] git command time: [00:00:00.0396901] rev-parse --show-prefix
2019-03-04 11:42:17.7083 [Debug] Command run:git tfs clone -u {email-account} -p {personal-account-password} https://{devops-username}.visualstudio.com/{collection-name} $/{folder-name} . --branches=none
2019-03-04 11:42:17.7083 [Debug] No authors file used.
2019-03-04 11:42:17.7083 [Debug] git-tfs version 0.29.0.0 (TFS client library 14.0.0.0 (MS)) (64-bit)
2019-03-04 11:42:17.7379 [Debug] Looking for assembly StructureMap.resources, Version=2.6.1.0, Culture=en-US, PublicKeyToken=e60ad81abae3c223 ...
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\VisualStudio\14.0|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\14.0|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_CURRENT_USER\Software\WOW6432Node\Microsoft\WDExpress\14.0_Config|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_CURRENT_USER\Software\Microsoft\WDExpress\14.0_Config|InstallDir
2019-03-04 11:42:17.7379 [Debug] Looking for assembly StructureMap.resources, Version=2.6.1.0, Culture=en, PublicKeyToken=e60ad81abae3c223 ...
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\VisualStudio\14.0|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\14.0|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_CURRENT_USER\Software\WOW6432Node\Microsoft\WDExpress\14.0_Config|InstallDir
2019-03-04 11:42:17.7379 [Debug] Trying to get HKEY_CURRENT_USER\Software\Microsoft\WDExpress\14.0_Config|InstallDir
2019-03-04 11:42:17.7379 [Debug] git command: Starting process: git init
2019-03-04 11:42:17.8112 [Info] Initialized empty Git repository in C:/DATA/Git/.git/
2019-03-04 11:42:17.8252 [Debug] git command time: [00:00:00.0767692] init
2019-03-04 11:42:17.8481 [Debug] No .gitignore file specified...
2019-03-04 11:42:18.9405 [Debug] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: TF31002: Unable to connect to this Team Foundation Server: https://{devops-username}.visualstudio.com/{collection-name}.
Team Foundation Server Url: https://{devops-username}.visualstudio.com/{collection-name}.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
at GitTfs.VsCommon.TfsHelperBase.EnsureAuthenticated()
at GitTfs.Core.GitTfsRemote.EnsureTfsAuthenticated()
at GitTfs.Core.GitRepository.CreateTfsRemote(RemoteInfo remote, String autocrlf, String ignorecase)
at GitTfs.Commands.Init.Run(String tfsUrl, String tfsRepositoryPath)
at GitTfs.Commands.Init.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath)
at GitTfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at GitTfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args)
at GitTfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs)
at GitTfs.GitTfs.Run(IList`1 args)
at GitTfs.Program.Main(String[] args)
2019-03-04 11:42:18.9635 [Error] TF31002: Unable to connect to this Team Foundation Server: https://{devops-username}.visualstudio.com/{collection-name}.
Team Foundation Server Url: https://{devops-username}.visualstudio.com/{collection-name}.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
2019-03-04 11:42:18.9635 [Error] The remote server returned an error: (404) Not Found.
2019-03-04 11:42:18.9734 [Warn] All the logs could be found in the log file: C:\Users\{user}\AppData\Local\git-tfs\git-tfs_log.txt