Git -tfs: How to clone a tfs project that contains spaces

I am trying to clone a TFS repository using git-tfs.

It works great with TFS projects that do not have a place in the name, for example:

git tfs clone http://tfs:8080/ $/TeamProject/folder 

But I also have some projects / folders that have both spaces and letter characters:

 git tfs clone http://tfs:8080/ $/TeamProject/my swedish Γ₯Àâ folder1/folder2 

When I run the command, I get:

 The item $/TeamProject/my swedish Γ₯Àâ folder1/folder2 does not exist at the spcified version. 

Any suggestion how to fix this?

+8
git clone tfs git-tfs
source share
2 answers

I solved the problem by renaming the projects to TFS and deleted the Swedish characters.

As Polynomial says, it's possible to have folders / projects that contain a space if you enclose a path with double quotes.

+5
source share

Here's a working example of cloning a TFS repository (TFVC) using git tfs , where the TFS repository (TFVC) contains spaces:

git tfs clone http://tfs:8080/ $/"Team Project/Folder Name"

The key "trick" for his work is to put double quotes around the project name / command folder (but do not put them around the $/ part).

i.e. $/"Team Project/Folder Name"

+10
source share

All Articles