Questions tagged [git-tf]

git-tf is a cross-platform tool to bridge git repositories with Microsoft Team Foundation Server version control. This differs from the Windows-based git-tfs tool, please use the git-tfs tag for questions about that program.

git-tf is a cross-platform tool to bridge git repositories with Microsoft Team Foundation Server version control. Users can create a git repository locally, where git commits are mapped to TFS changesets, and then checkin changes to their local git repository back to TFS. git-tf utilizes and to work on a variety of platforms, including Windows, Mac, Linux and others.

git-tf differs from the similar git-tfs tool that is Windows-only. Please use the tag for questions about that program.

git-tf is maintained by Microsoft and is open sourced under an MIT license.

84 questions
4
votes
1 answer

Is it possible to associate TFS work items when using git-tf

I am using git-tf and am finding that after checking in my changes to TFS I end up having to manually associating these changes with TFS work items. I see the --work-item option in the documentation but am wondering if it is possible to have these…
davidk
  • 784
  • 1
  • 6
  • 22
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
4
votes
1 answer

git-tf: checkin a commit which moves a file from a folder which is to be deleted

I'm running into a problem checking in a particular commit using git-tf. The problematic commit involves moving (renaming) a file which is a child of a folder which is to be deleted. Apparently this is a no-no in TFS (see this SO post). In the…
ManicBlowfish
  • 2,258
  • 2
  • 21
  • 29
4
votes
1 answer

git-tf checkin Exception in thread "main" java.lang.StackOverflowError

I am trying to take an existing git repository and check it in to TFS Preview using git-tf, and I am getting an error when I try to do the check in. Here is what I have done so far. git clone -b https://github.com/.git to clone the branch that I…
user967561
  • 71
  • 3
4
votes
1 answer

Git-tf checkin fails: commit [commitid] has multiple parents. Using --deep option to create history in TFS

It appears that neither --deep or --shallow seem to work. I am getting an error when attempting to do a git-tf checkin --deep to a new folder (currently empty) in TFS. I have a git repo with quite a bit of history. I would love to keep/migrate to…
EdFred
  • 661
  • 4
  • 10
4
votes
3 answers

Unable to execute git tf command

I just setup git-tf, but I'm running into an issue. Here's the error I'm receiving: > git tf help line 23: exec: cmd: not found fatal: 'tf' appears to be a git command, but we were not able to execute it. Maybe git-tf is broken? Here is a…
JesseBuesking
  • 6,496
  • 4
  • 44
  • 89
3
votes
1 answer

git tf configure "A server path must be absolute"

Command (cmd & powershell) sample (servers and path names altered) c:\code\git\svnImport> git tf configure http://server:8080/tfs/collection $/project --deep Response git-tf: A server path must be absolute: $C:/Program Files (x86)/Git/project What…
Smith
  • 33
  • 1
  • 5
3
votes
1 answer

How can I log into Visual Studio Online using git-tf?

I'm trying to git tf clone a project on Visual Studio Online that is using TFVC, I'm running the following command: git tf clone https://{user-url}.visualstudio.com/DefaultCollection {project_path} It then asks for a username and password, but when…
Bret Kuhns
  • 4,034
  • 5
  • 31
  • 43
3
votes
1 answer

git-tf tells me "Could not lock" when checking in; how can I fix it?

I'm using git-tf to push to a TFS project. Sometimes, when I try to check one or more commits into TFS, I get a message like this: Connecting to TFS... Checking in to $/MyProject: 0% git-tf: Could not lock $/MyProject What does this mean? …
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
3
votes
1 answer

Cache TFS login credentials for git-tf

I use git and git-tf at my job, but every time I perform any command with git-tf I have to enter my login credentials. Is there a way to cache my TFS login credentials for git-tf so I won't have to enter them every time?
Jason Hartley
  • 2,459
  • 1
  • 31
  • 40
3
votes
2 answers

TFS with mac os

I have to use TFS for my Mac machine for iPhone app development. So that I have used the following step as from the Git-TF_GettingStarted.html Extract the contents of Git-TF-Release-Preview.zip to a folder on your local machine, i.e. C:\git-tf on…
ani
  • 440
  • 1
  • 5
  • 15
3
votes
1 answer

best way to promote git local repository (cloned from) to origin to use with git-tf

I'm using Git-tf to (obviously) skip TFS and be able to work offline and avoid the readonlys and all that tune ... Now .. I started cloning the tfs project in to lets say drive D: then I cloned again from drive c: (I think i was over paranoid there)…
Dan
  • 2,818
  • 23
  • 21
3
votes
2 answers

How do I use Microsoft's Git-TF 1.0 when TFS is not on-premises

Following the post Using Git in a TFS shop, Reading Brian Harry's blog on msdn: http://blogs.msdn.com/b/bharry/archive/2012/08/13/announcing-git-integration-with-tfs.aspx and Having gone through Ms download…
vijiboy
  • 584
  • 11
  • 25
2
votes
1 answer

Git tf checkin --deep command doesn't work as required

I am doing migration from git to tfs, while doing checkin using git tf checkin --deep command but even with --deep the checkin will lose the info about who was the original commiter, and reassign all commits with current user executing the checkin.…
2
votes
1 answer

git tf pull Could not find a valid TFS Collection at

Im trying to get GIT-TF to work with our 2012 TFS repo (not a git tfs repo!). I keep getting an error when i try to pull : Could not find a valid TFS Collection at http://MYSERVER:8080/DefaultCollection To set up i used : git tf configure --force…
Carl
  • 31
  • 3