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
2 answers

How to append a git repository on top of another

I am in the process of converting a project from TFS to git, and I want to keep all history. The problem is that the TFS project was moved in TFS one year ago. Using git-tfs I can convert both locations to git, but now I have two git repositories:…
sighol
  • 2,678
  • 6
  • 28
  • 34
0
votes
1 answer

Not able to clone/list TFS repo

Reading this doc I got an impression that I should be able to use git-tfs to get the contents of a TFS repo in order to clone some branches: https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/manage_tfs_branches.md Tried these…
ajeh
  • 2,652
  • 2
  • 34
  • 65
0
votes
1 answer

After transfer from TFVC to GIT, the "current" file is not the same as the one in the latest commit

We just migrated from TFVC, with the git tfs tool. We did use this command line : git tfs clone $tfsServer $tfsRepository . --branches=all Which is supposed to take all our branches and import them in a git repo. We had no errors and everything…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
1 answer

Clear Git repository

I've to transfert a TFS server to a GIT(Bitbucket) server. We are currently using git-tfs to do it, but we are doing some tests before migrating(like configuring jenkins, checkin that everything is correctly transfered). The issue is that now it…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
1 answer

Git, GitHub, TFS, Git-TFS and VisualStudio.com

I am starting a project on my stand-alone pc using visual studio 2015. In the past, I have used TFS and Git in team projects. My preference for this new personal project is to use Git on my local machine in conjunction with TFS; which is also…
0
votes
1 answer

Clone a TFVC repository (to GIT) with work item links intact

Is there any tool that supports so called "id mentions" when cloning a TFVC repository into a Git repository? What I would like is for each commit in the cloned Git repository to contain id mentions for its linked work items. Commit: hash... …
Emil G
  • 1,211
  • 1
  • 14
  • 26
0
votes
1 answer

git-tfs branches=all not working

I'm trying to migrate our TFS repository to Git. I'm using git-tfs to migrate. I have a problem occurring and one doubt. When I try to migrate using branches=all it comes to a point where it does not continue (see image below). If I can not migrate…
0
votes
1 answer

git-tfs pushing yout .git folder

I'm new to git-tfs and was wonder if there was a way to ensure that 'some' version of the .git folder would be sent to TFS for storage? (Unless I'm missing something) If our setup is local dev -> tfs server; then the only copy of the .git would be…
Omnia9
  • 1,563
  • 4
  • 14
  • 39
0
votes
2 answers

Sharing code between 2 TFSVC repositories with git-tfs

I have 2 different TFS repositories (one using Visual Studio Online and another using my own local on premise TFS instance) which I want to keep in sync using git-tfs. How do I need to set things up so that I can work locally in git and push changes…
Damian
  • 2,709
  • 2
  • 29
  • 40
0
votes
1 answer

Transfering TFS to Git with history till certain date

I am in the process of transferring our code from TFS to git as per the article here The tool use the following command to clone TFS version to local repository along with all the history. git-tf clone…
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
1 answer

Push existing git repo to new branch of different repo

I'm using git-tfs to migrate repositories, and due to a quirk of the tool I have to clone/convert a branch to its own repo. How can I push this separate repo, which has its own history and everything, to a branch of an existing repo? I can start…
vaindil
  • 7,536
  • 21
  • 68
  • 127
0
votes
1 answer

git-tfs mapping git usernames to tfs domain names

I see on the git-tfs github page there is a way to map domain names to git names with the authors switch, however I'm looking to do the other way around, and up til now it does not seem to be working. I have a repository already pulled down, and I…
Steven Dall
  • 174
  • 2
  • 15
0
votes
1 answer

Why is cloning TFS root branches recommended?

The git-tfs tool allows you to clone TFS branches to Git repositories. One way of displaying the available TFS branches is to use the git-tfs list-remote-branches command, which (at the end) states: "Cloning root branches (marked by [*]) is…
Jez
  • 27,951
  • 32
  • 136
  • 233
0
votes
1 answer

How do I merge a remote tfs branch into a git branch?

I need to merge changes from a remote tfs repository branch into a git repository branch. Cloning would create a whole new git repository, which I don't want. I want to merge into an existing git repository. Clarification: A couple of weeks ago, a…
Vyskol
  • 298
  • 3
  • 11
0
votes
1 answer

rchecking a branch created on git against tfs

What I successfully did until now: git tfs clone from my Main branch in TFS. push this repo to my bitbucket account. created a branch locally (git checkout -b testbranch) created the same branch on TFS (git tfs branch $/Repo/testbranch) made some…
Andrey
  • 461
  • 1
  • 6
  • 17