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
3
votes
1 answer

Can I use git-tfs with extra header?

I need to automate the 'git-tfs pull' command in azure devops. I have no problem executing this command with my user/pass from cmd window, but when it runs in Azure DevOps Build Agent it doesn't finish, sure it is an authentication…
3
votes
1 answer

How to convert a deleted regular directory into a branch in TFS?

I'm in the middle of migrating a repository from TFS to Git, and I'm using git-tfs. I've already converted my Trunk branch using 'git tfs clone ...' successfully. When trying to 'git tfs branch --init' a related branch it fails with the error…
Andreas Presthammer
  • 1,886
  • 2
  • 19
  • 31
3
votes
2 answers

Git-tfs Clone Hangs Fetching From Dependent TFS Remote - Endless Loop?

I'm trying to clone an entire TFVC repository hosted in Visual Studio Online with branches using the following command: git tfs clone --with-branches --export-work-item-mapping="{mapping file path}" https://{project…
How 'bout a Fresca
  • 2,267
  • 1
  • 15
  • 26
3
votes
1 answer

git-tfs local Git repo to TFVC

I'm testing out git-tfs with an on-premises TFS instance (does it work with VSO, too?) and trying to use rcheckin to push my Git commits up to TFVC. However, when I try and use rcheckin, I get an error that no TFS parents are found. The TFVC repo…
m00nbeam360
  • 1,357
  • 2
  • 21
  • 36
3
votes
1 answer

git-tfs returns "(401) unauthorized" error when cloning a repository

I used git-tfs to work with a TFVC repository. I started working on other project and the project's code is hosted on a different server. Now I get errors when I try to clone the repository. git tfs clone http://tfs-server:8080/tfs…
filhit
  • 2,084
  • 1
  • 21
  • 34
3
votes
1 answer

Can't get git-tfs to clone for me

Trying to use git-tfs to clone a TFS directory I'm using this command: C:>git-tfs clone http://xxxtfs10:8080/tfs $/Servers/YYYYYY mygit I created mygit using: git init mygit I'm trying to get the directory at Servers/YYYYY in tfs. But consistently…
Ceq
  • 33
  • 3
3
votes
2 answers

Associate changesets with work item git-tfs

I've tried figuring this out but with no success so far. I am using git-tfs to check in my changes to TFS (local using GIT repository) I read this question which briefly describes that you can associate workitems in a commit message using metadata (…
julia
  • 452
  • 6
  • 15
3
votes
1 answer

Why do I get the following error installing gittfs?

I am using the following command via choclaty to install gittfs. cinst gittfs Seems to go okay until I get the following error: Write-Error : gittfs did not finish successfully. Boo to the chocolatey gods! ----------------------- [ERROR] Cannot bind…
shenku
  • 11,969
  • 12
  • 64
  • 118
3
votes
1 answer

How to add custom TFS CheckinNoteDefinitions?

Using TFS 2012 client C# API, I can add CheckinNotes to each commit; CheckinNotes need a suitable CheckinNoteFieldDefinition for each CheckinNoteFieldValue, or the checkin will be rejected and an exception is thrown. How can I add additional…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
3
votes
1 answer

Storing git commit metadata in TFS when using git-tfs

Context We're a team of developers collaborating using github. We need to mirror our release branch on TFS such that we have a tfs changeset for every git commit. It seems the best way to do this is using git-tfs rcheckin. In a comment to the answer…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
3
votes
2 answers

Git-tfs reset to remote

I want to reset to the state of a remote. Using normal git I would do something like git reset --hard origin/HEAD. I am using git-tfs. Does anyone know how to do this with git-tfs?
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
3
votes
2 answers

Reasons to use full-blown git rather than tfs via git-tfs

To me it seems completely obvious to use pure git, but I am in the position of having to articulate why using pure git is a superior solution to using TFS via git-tfs. The company I work for has a "policy" of using TFS, although the developers in my…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
2
votes
1 answer

Git-tfs Clone: Option to not create temporary workspace (or specify existing permanent workspace)?

How might I run git tfs clone without permissions to create a temporary workspace--or, alternatively, specify an existing permanent workspace which git tfs should not cleanup afterward? Running command: git tfs clone --branches=all…
iokevins
  • 1,427
  • 2
  • 19
  • 29
2
votes
0 answers

How can I speed up git-tfs on large (10GB+) TFVC repos?

Some of our teams have large TFVC repos (10GB+, some > 100GB), and some with 5-10 years of history. They are using git-tfs, but it can be very slow or not complete. We have tried so far: Remove large binaries from the repo. Move dependencies to a…
LeWoody
  • 3,593
  • 4
  • 25
  • 31
2
votes
1 answer

Merge branches in GIT after migration from TFS

We had TFS repository with one branch "Main". Then we branched it to another, "Main-MERGE". Both has been long term branches, but in some points we made some merges. All works fine. Now we migrated whole repository to GIT using git-tfs. All seems to…
Raptor
  • 392
  • 1
  • 4
  • 21