简体   繁体   中英

Cloning TFS repository using git-tfs

I'm trying to clone a GIT repository in TFS using git-tfs using TFS 2013

git tfs clone http://servername:8080/tfs/DCM "$/Python"

Gives me:

error: the path $/Python you want to clone doesn't exist!

"DCM" is the name of the collection and "Python" is the name of the project:

在此处输入图片说明

I try to list the branches:

git tfs list-remote-branches http://servername:8080/tfs/DCM

which yields:

No TFS branches were found!

My instinct is that this is a syntax error, but not sure what I'm doing wrong.

As the main developer of "git-tfs", I'm very pleased you absolutely want to use it! But there is no need of it here ;-)

The repository you want to clone is already a git repository (see the small red git icon like the one in the git website ).

git-tfs is a bridge tool to be able to import a TFVC history in a local git repository.

So, you just need to do a pure git clone, that should be something like :

 git clone http://servername:8080/tfs/DCM/Python.git

The URL is provided by the web portal, at the exact page you are, in the upper right corner. You should have a 'clone' button...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM