Unable to perform TFVC to GIT import on VSTS

六月ゝ 毕业季﹏ 提交于 2021-02-11 13:27:53

问题


I am trying to import a specific TFS branch (without history) to GIT using "Import from TFVC" function available after creating an empty GIT repository in VSTS. The error I am getting is:

There is no item in the given path which can be imported

VSTS redirects me to https://go.microsoft.com/fwlink/?linkid=839462 but there is no description of this error, it's a general import guide.

The branch I am referencing during the import has many projects and is about 500MB in size (this is the size on disk after I fetch the branch to an empty folder).

What can I do to perform the import using the import tool?

If this fails can I simply create a local GIT repo on my disk, where i have the TFS branch, connect it to the newly created remote repo and push everything there?


回答1:


If all you need is the tip, you can clone your empty Git repo, add the files from TFVC, and push the repo using standard Git commands. Or you can git init a new local repo, add a remote pointing to your empty repo, and push that way.

No need for the import tool.



来源:https://stackoverflow.com/questions/55479743/unable-to-perform-tfvc-to-git-import-on-vsts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!