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
1
vote
1 answer

TFS to GitHub Migration

I am working on Migrating my Azure DevOps code to GitHub. I am using the https://github.com/git-tfs/git-tfs tool to migrate the source code from ADO to GitHub. I am able to successfully migrate the code with Changeset History etc, I only see the…
1
vote
1 answer

How can I see all remote branches pushed by me

I know git branch -r shows all remote branches but I want to see only those that I created using git push. It will be a bonus if someone could show how to delete only my remote branches safely.
Imad
  • 7,126
  • 12
  • 55
  • 112
1
vote
2 answers

Clone GIT to TFS (AzureDevOps) with git-tfs

we have an local DevOps Server 2019 with our old projects and I am able to clone this projects with git-tfs to local Git repositories. Everything is fine. After that I can push this repositories to our AzureDevOps Git repositories. Everything…
bater
  • 97
  • 9
1
vote
2 answers

Migrate only part of TFS repository to Git on Azure DevOps

I am new to a company and my boss wants me to set up a proper Git repository to replace the existing TFVC repo. My company has dozens of .NET solutions for various separate products all in a single repo all in separate folders. These solutions are…
Ross Gustafson
  • 1,182
  • 3
  • 16
  • 32
1
vote
1 answer

Git-tfs: fetching notes

I did a migration from a TFVC branch(TFS 2013) to a git repository(TFS 2013) using git-tfs. It was pretty simple, just ran git-tfs on the TFVC branch, it created a local git branch which I pushed to a new git repository. Git-tfs created the complete…
DevOpsy
  • 667
  • 1
  • 8
  • 18
1
vote
0 answers

Git force push through a CI build getting hung

I have written a PowerShell script to force push just a text file with version number(nuget package version to link with commit number) into server git-tfs repo and this script works perfectly fine when run manually(powershell ISE) on build…
S Mir
  • 33
  • 4
1
vote
1 answer

git-tfs clone error: path contains more than the allowed 259 characters

When trying to do a git-tfs clone from a TFVC repository hosted in VSTS, I got the following error, which aborted my clone operation. I don't really want to mess with my client's codebase. How can I resolve this error and get the clone operation…
Dan Csharpster
  • 2,662
  • 1
  • 26
  • 50
1
vote
1 answer

TFVC and consequences of converting branches to folders

Setup: I have a client with a TFVC source control repository. The root is a folder, not a branch. Scattered throughout the hiearchy are branches, sometimes 2, sometimes 3 levels deep. For using git-tfs to migrate the repository, I need the root to…
Dan Csharpster
  • 2,662
  • 1
  • 26
  • 50
1
vote
1 answer

git-tfs what URI to use for TFS for list-remote-branches

We have a TFS Source Control system that we've been using for years. New management and common sense says we need to move to git going forward. SO, trying git-tfs with no luck. The closest I get is "TF31002: Unable to connect to this Team…
Owen
  • 426
  • 5
  • 15
1
vote
1 answer

Git-TFS - How to make sure a branch is up to date before pull request is approved?

I push branch stav and create a pull request to master. I want to make sure that the pull request can be approved only if branch stav contain the last changes from branch master. I'm using Microsoft Visual Studio Team Foundation Server Version…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
1
vote
2 answers

how to pull changes from master branch into another branch (this branch created from master previously) in the root in git-tfs

I have two branch in git-tfs. one is master and other is QA, this branch is created from master previously. All the recent changes are in master. Now i want to get the changes from master to my QA branch. how to get that? I want to get done that…
MarsRoverII
  • 111
  • 1
  • 15
1
vote
0 answers

Unable to get changes that are in git repo into TFS with git-tfs

We use TFS for our source control system, but need to work with a contractor. We've set up a GitHub repo and I've been using git-tfs to move changes between the two. I'm not very familiar with git, and have managed to get myself into some…
Steve
  • 6,334
  • 4
  • 39
  • 67
1
vote
1 answer

TFS(2015) to GIT migration with history & branches

I am trying to migrate a TFS team project under team project collection to GIT version control. My requirement is to move the history & the branch as it is in TFS. I am able to move history but not the branches. The branches are getting created as…
Dinesh
  • 117
  • 3
  • 9
1
vote
4 answers

git-tfs can I clone all branches but skip the history?

I want to migrate a project from TFVC to Git. I want to keep the different branches but I dont need each history. Can it be done? I tried git tfs quick-clone -branches=all but I only fetches one branch
Jepzen
  • 2,942
  • 6
  • 40
  • 62
1
vote
1 answer

git-tf with separate repositories

I'm part of an organization that is unfortunately using TFS/TFVC for source control. My small team been tasked with doing a sort of "proof of concept" run with git, but we have to be able to push our changes into TFS. Luckily, git-tf and git-tfs…
moneyt
  • 452
  • 8
  • 18