Connect TFS to GitKraken

1.3k views Asked by At

I'm currently designing an WPF / C # project under visual studio. So I have a TFS server as source manager and stories management. This one is also in connection with TeamCity.

Nowadays given the very bad management of the version branches since tfs, I would like to pass by real tool that GitKraken (or others that would be compatible).

The problem is that I do not know what URL applied in Gitkraken knowing that my repositories are not Git ...

the URL: https://[Name].visualstudio.com/DefaultCollection/[ProjectName] does not work or at least the following error is returned :

"Could not connect to 'origin'. Double-check your remote url, then make sure you have access to do action..."

Can a software such as GitKraken connect via TFS without it being a Git server?

3

There are 3 answers

1
PatrickLu-MSFT On BEST ANSWER

It's not able to directly use TFVC repo with GitKraken. One way to do the trick is migrating the TFVC repo to GIT repo.

TFS2017update2 provides a simple migration tool to migrate from Team Foundation Version Control to Git. Individual folders or branches can be imported to the Git repository, or the entire TFVC repository can be imported (minus the branches). Users can also import up to 180 days of history.

For changing TFVC to GIT, some limitation please refer this tutorial:Migrate from TFVC to Git

On earlier TFS version, you could use Git-TF command line tool.

0
Boris Modylevsky On

Like others have mentioned before, GitKraken is a Git client tool and your repository is TFS. So I suggest migrating your source code from TFS to Git. I recommend using the git-tfs tool with the following command:

For migrating the whole history of all the branches:

git tfs clone https://tfs.codeplex.com:443/tfs/Collection $/project/trunk . --branches=all

For migrating the history of only the main branch:

git tfs clone https://tfs.codeplex.com:443/tfs/Collection $/project/trunk . --branches=none

2
Gary Ewan Park On

To the best of my knowledge, GitKraken (like other Git GUI tools) works solely with Git. If you are using the older Team Foundation Version Control (TFVC), then you will NOT be able to use GitKraken to manage the branches within the repository.

UPDATE: I am not aware of any tools similar to GitKraken for using with TFVC.