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

One-to-one mapping of git commits to TFS changesets using git-tfs rcheckin

The Context We have a git repository with a release branch. We have a TFS repo (currently empty). My task is to mirror the release branch of the git repo into TFS so that every commit in git maps to a changeset in TFS. All the developers only…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
5
votes
1 answer

Git-Tfs: A TFS changeset per Git Commit?

At work we use TFS, and I'm trying to get the Git-TFS tool to work so that I have more flexibility when working with local commits before pushing them to our TFS repo. I have this working, but when I do a git tfs ct, it checks all my commits into…
Dan
  • 5,692
  • 3
  • 35
  • 66
5
votes
2 answers

git-tfs clone fails with error code 128

I'm using git-tfs to clone a TFS repository, something I've been able to do successfully in the past. But with the current version when I run the command, like this... git tfs clone http://NameOfOurTfsServer:8080/ $/NameOfMyProject -d ...I get an…
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
4
votes
2 answers

cloning a git-tfs central repo, and hiding TFS

I have a code repository in TFS (Microsoft Team Foundation Server). I can use git-tfs to convert this to a git repository. But what I want to do is set up one central git repo that pushes to TFS, and have all developers clone that git repo and not…
tpdi
  • 34,554
  • 11
  • 80
  • 120
4
votes
1 answer

Git permanently ignore changeset

I've made a change in my git repository that I don't want to propagate back to anyone else ever. I do want to keep the changes in my local repository. That is, I want pulls to my repo to merge into the changes I've made. An ideal answer will…
Eric
  • 18,512
  • 4
  • 29
  • 34
4
votes
2 answers

git-tfs dealing with tags

I have a question regarding git-tfs integration and how it deals with labels. While working with git-tfs, how do you deal with labels? Are they imported into git? Are "tags" also "exported" when pushing changes back to tfs? Thanks
pablo
  • 6,392
  • 4
  • 42
  • 62
4
votes
1 answer

How can I use git-tfs when the repository requires code analysis before checkin?

I'm using git-tfs, and trying to use git tfs checkintool to commit my Git changes to TFS. It brings up the TFS commit window, and I fill in my commit comment and associate my work items; but when I click OK, it gives me the "Policy Failure - Checkin…
Joe White
  • 94,807
  • 60
  • 220
  • 330
4
votes
2 answers

Very large TFS repo — from a subfolder

I will tremendously appreciate all advice on how to proceed with the following task at hand. I have read fairly thoroughly the documentation on git-tfs clone, git-tfs quick-clone and git-tfs branch but still haven't been able to break into this…
Fernando Espinosa
  • 4,625
  • 1
  • 30
  • 37
4
votes
2 answers

git filter branch fatal revision

I'm trying to migrate from TFVC (Visual Studio Team Services) to git (hosted via Visual Studio Team Services). I've been able to build a script which migrates all the stuff, branches, does some cleanup etc. I used git tfs…
baywet
  • 4,377
  • 4
  • 20
  • 49
4
votes
2 answers

How to manage two TFS projects in one git repository?

We are using TFS as main source control and I would like to use git as a "frontend" together with git-tfs rcheckin command but I have problems importing my repositories into git. I have a two projects in my TFS $/ProjectA $/ProjectB and I would…
Michal Sznajder
  • 9,338
  • 4
  • 44
  • 62
4
votes
1 answer

Migrate to GIT from TFS with multiple branches and their history

C:\>git tf clone https://companyname.visualstudio.com/DefaultCollection $/companyname/Main OldTFS --deep This only gets me main branch history. That was git tf. C:\>git tfs clone https://companyname.visualstudio.com/DefaultCollection…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
4
votes
1 answer

Appending comments in checkintool

Recently, I've switched to using git-tfs so that TFS isn't a nightmare to work with. :) However, I've noticed an annoying detail that I can't seem to track down searching around in the docs and on the web. The issue is with comments when using git…
Davin Tryon
  • 66,517
  • 15
  • 143
  • 132
4
votes
2 answers

Any way to retrieve more changesets after an initial quick-clone?

I've cloned a TFS repository with the quick-clone command which gave me all the recent changesets. Is there a way to retrieve further, older changesets up to a certain revision in this existing repository? I don't really want to clone a new…
SeeNoWeevil
  • 2,549
  • 4
  • 26
  • 39
4
votes
2 answers

Limitations to consider when using git with TFS via git-tf or git-tfs?

What will I actually miss if basing my source code handling on TFS (to get all the integration and reporting etc) but use git-tf or git-tfs locally? Will I then be able to use the complete git functionally to branch and merge locally just as if…
Riri
  • 11,501
  • 14
  • 63
  • 88
3
votes
2 answers

How to migrate tfvc to Git including history

We are planning to migrate from tfvc to Git version control. We have some GBs of code and thousands of changesets. I read some articles and went through Microsoft documentation and found 2 options. tip migration - where I can use Azure Devops…
Kart
  • 53
  • 2
  • 8
1 2
3
13 14