Questions tagged [git-tfs]

Git-Tfs is a Windows open sourced two-way bridge between TFS(TFVC) and git, similar to git-svn.

Git-tfs is a command-line based source control bridge that allows you to work with Git locally, reducing the number of operations to communicate with the TFS source control server to exactly three operations: Clone, Checkin and Fetch (or Pull).

Major features

  • Clone a TFVC repository in a git repository
  • Syncing new changesets/commits (fetch, pull and rcheckin)
  • TFS branch support with merge support
  • Shelveset support
  • Workitems support
  • Migrate from TFVC to Git

Online resources

204 questions
0
votes
1 answer

Java ProcessBuilder can't handle spaces and quotas

I'm trying to write a simple application in java that will clone automatically a whole trunk from TFS to Git repo using git-tfs. To get data from user i'm using some jtextfields. In one of there jtextfields user must write the trunk name. Everything…
Davide
  • 35
  • 5
0
votes
1 answer

git-tfs: checkin command throw error policy

I have a TFS repository on Azure DevOps Server Version 17.143.28621.4 I installed git-tfs V 0.30 downloaded from github. I cloned the repository, and I am able to fetch, pull, commit and create shelveset. I have trouble during the checkin…
Lorenzo Isidori
  • 1,809
  • 2
  • 20
  • 31
0
votes
1 answer

Git tfs clone - Server was unable to process request. ---> There was an error generating the XML document. ---> Specified cast not valid

I was trying to migrate tfs to git using git tfs clone command: git tfs clone https://locahost/collection $/"Test project/feature-branch" Error received: 2019-10-31 12:39:56.8412 [Debug] System.Reflection.TargetInvocationException: Exception has…
Uday
  • 151
  • 1
  • 3
  • 15
0
votes
0 answers

Git-Rebase on .gitignore causes conflicts?

I'm trying to add a .gitignore to a large repository. I pulled the branches into a new local repository containing only the visualstudio.gitignore file ('master'), checked out the oldest branch (that all other branches depend on = 'rootBranch') and…
Vaethin
  • 316
  • 4
  • 18
0
votes
1 answer

Can I use Git tfs to re-migrate to an existing git repo

I want to move tfvc to tfs git. I am going to use git tfs tool https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/migrate_tfs_to_git.md After I push to origin there will be some more checkinswto tfvc, therefore I want to re-migrate. Is it…
Dhanuka777
  • 8,331
  • 7
  • 70
  • 126
0
votes
1 answer

How to clone TFS to GitHub with history using Git-TFS?

I'm trying to clone a GIT repository in TFS using git-tfs using TFS 2012 git tfs clone http://sourcecontrol.oldcompanyname.local:8080/tfs/foo $/companyname/myrepository . --b=all --resumable Gives me: error: the path $/companyname/myrepository you…
RichC
  • 7,829
  • 21
  • 85
  • 149
0
votes
1 answer

Import TFS history from another project to Git

I'm trying to migrate a project from TFS to Git using git-tfs, on a project that inherits history from an older, not used anymore, project in TFS. Just to make things clearer: the old project has 5 years of history, then, 1 year ago the new one was…
Alberto Chiesa
  • 7,022
  • 2
  • 26
  • 53
0
votes
1 answer

Cloning whole reop with GIT-TFS is not working properly

I want wo migrate my TFS repo to GIT. After some research I found GIT-TFS. But I have some trouble with it. When I try to clone my repo from TFS I don't get all the content. The command I use is: git-tfs clone http://tfs:8080/tfs/Collection…
ochs.tobi
  • 3,214
  • 7
  • 31
  • 52
0
votes
1 answer

Append TFS commits to existing git repository

I want to migrate repository from TFS to Git. I would like to setup the Git repository first (.gitattributes, LFS) and then start importing the TFS commits via git-tfs. Unfortunately I haven't found the correct steps to do it. Is it even possible?…
sharpener
  • 1,383
  • 11
  • 22
0
votes
1 answer

How check automatically if there is an update on a package in my local nuget server with the same version

In my company we work on the same app from different teams. Background I have created a local nuget server Each team build it's own package After pushing to Git-TFS server, something must increase the version number from x.y.z to x.y.z+1 inside…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
0
votes
1 answer

Migrating multiple hierarchical TFVC branches into TFS-GIT

We want to migrate existing TFVC to TFS-GIT using existing team project with multiple branches. I found some tutorials that I could follow to migrate every branches. But their is something that makes me wonder if we can maintain or re-arrange our…
jtabuloc
  • 2,479
  • 2
  • 17
  • 33
0
votes
1 answer

Visual Studio Git - HEAD & Master branch under remote/origin

I have not created local branch while making changes. I used master branch that gets created locally and made commit & sync changes after modifying few things. Now, I see there are two branches that got created in remotes/origin, HEAD and master.…
Vicky
  • 624
  • 2
  • 12
  • 35
0
votes
1 answer

How to share selected projects in a Visual Studio solution between TFS and GIT?

I have a VS 2013 solution with a primary project building a class library (accompanied by Sandcastle Help File Builder project for documentation and a couple of helper libraries). In addition, the solution includes a dozen of code sample projects…
Alek Davis
  • 10,628
  • 2
  • 41
  • 53
0
votes
1 answer

Is it posible to clone a branch from tfs to git without some inner directories?

The git-tfs clone command contains an option named --ignore-regex. I found instructions how to use this command to omit files from the clonning but is it possible to clone a branch from tfs to git and omit entire inner directory of the branch? If it…
LEyahoo
  • 83
  • 1
  • 9
0
votes
1 answer

Exporting Git release branch

I'm using TFS-GIT and I was wondering if its possible to extract everything that's been committed into a release branch to a ZIP. I've looked at an example and it insinuates everything in that branch would be extracted. I'm just looking to extract…
david-l
  • 623
  • 1
  • 9
  • 20