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

Config option for git-tfs checkin to use --no-merge by default

Is there an option to add something to git-tfs config, so the checkin (and checkintool) command uses --no-merge flag by default. I want to use git tfs checkin instead of git tfs checkin --no-merge
filhit
  • 2,084
  • 1
  • 21
  • 34
1
vote
1 answer

Git-Tfs missing history on branch

I am migrating to from TFS to Git and using Git-tfs. I have managed to download the source code from the TFS Server for all branches. The main branch ($/Project/Main) is fine and works but one of the branch (fs) that was created off the main does…
user1754675
  • 887
  • 13
  • 32
1
vote
1 answer

git-tfs clone creates empty folder

I am trying to clone a project from TFS using git-tfs tool. git tfs clone http://aserver:8080/tfs.... $//ABC/Proj1 Result is a folder with empty git repository which contains history of commits but there are no source code files in it and none of…
Humanier
  • 274
  • 2
  • 11
1
vote
1 answer

Git TFS Visual Studio showing pending changes when there are none

I have just cloned a repository and the under the included changes panel in Visual Studio there were 100+ changes being detected. I did a git reset --hard and that dropped the changes to about 20. I've also tried the git --reset hard HEAD variant.…
Steji
  • 580
  • 1
  • 6
  • 17
1
vote
1 answer

git-tfs not cloning all changes

I've been using git-tfs to clone my TFS projects and upload them to git repos in Visual Studio Online. Most of the projects clone successfully and are ready to go, but several are stopping at very old changesets and complete as if they worked…
vaindil
  • 7,536
  • 21
  • 68
  • 127
1
vote
1 answer

Visual Studio Team Services - Migrate Work Items/Sprints/Checkin Associations from TFVC to Git

I recently have been going through the steps to move our Visual Studio Team Services projects from using TFS to Git. I have done this successfully (using git tfs) and was able to get the branches and version history to come along for the ride as…
How 'bout a Fresca
  • 2,267
  • 1
  • 15
  • 26
1
vote
0 answers

git-tfs rcheckin error: New TFS changesets were found

I was using git-tfs rcheckin after cloning the TFVC team project repo from TFS 2015 onto my local machine and using git rebase --onto master --root otherrepo/master. (I merged another Git repo into the TFVC repo and fixed merge conflicts). In the…
m00nbeam360.0
  • 1,342
  • 1
  • 13
  • 26
1
vote
1 answer

Migrating a large, divergent TFS Team Project to Git

I have a large-ish TFS team project. After battling with Git-TFS (we have some funky stuff in our TFS Team Project) I have a full local git repo. It is too big to fit into the BitBucket 1GB soft limit. The Team project contains branches that are…
trickbooter
  • 136
  • 6
1
vote
1 answer

Can't ignore *.vssscc, *.vspscc files

I'm using Git-TF (bridge between Git and Team Foundation Version Control (tfvc)) git tf pull downloads .vssscc, .vspscc files into the repository and commits. So if I use git push next, it uploads those files into remote repository which is not…
cilerler
  • 9,010
  • 10
  • 56
  • 91
1
vote
2 answers

TFS 2013 Git Build Definition with TFVC Source

In TFS 2013, is there any way to create a custom build workflow (via a custom .xaml file) which uses source from both a TFS-Git project and TFVC project? When creating a Build Def in a Git project, the Source Settings tab only allows selection of a…
Suchit-CM
  • 55
  • 6
1
vote
1 answer

How to exclude certain branches from git-tfs clone operation

I'm busy experimenting with git-tfs do tfs to git conversion. I understand the cmd below will clone everything and convert TFS branches into the git repository: git-tfs clone http://tfs:8080/tfs/DefaultCollection $/Project1/Trunk…
Avner
  • 4,286
  • 2
  • 35
  • 42
1
vote
2 answers

Preventing file in git repository from being checked into TFS by git-tfs

I'm working on a TFS repository where check-ins of unnecessary files are strongly discouraged. As it stands, some files, like .gitignore, fall into a category of unnecessary ones. Is there any way to prevent git-tfs from checking these files into…
galenus
  • 2,087
  • 16
  • 24
1
vote
2 answers

Multiple TFS server for the same project

For the same project I want to use 2 TFS server, because I have 2 groups of developers and they can only access their own TFS and I can access both. This is very easy to do with git. Take a look at my .git/config file. This project uses both github…
faisal
  • 1,327
  • 10
  • 19
1
vote
1 answer

git reset --hard isn't resetting the files

I'm using git-tfs and I'm having issues with files changing arbitrarily. When I run git reset --hard it says I'm at the appropriate commit, but that I still have pending changes. Can anyone explain what's going on here? And here's my config
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
1
vote
1 answer

Git tfs - sequence has no elements

I am migrating a tfs project to git and am using the latest version .20 of git tfs and have converted my project into branch in tfs and am still facing this error. Here is the log of what I get: Setting up a TFS workspace at…
Scooby
  • 3,371
  • 8
  • 44
  • 84