8

Currently, the only way to install the Git-TFS bridge is through Chocolatey. When I tried it, however, it appears to install Git (for Windows) along with the actual Git-TFS package. I already have Git installed on my work machine, so I don't need it to modify/remove what's already there.

Is there a way to force Chocolatey not to modify my current Git install and just put in the Git-TFS package? If there is, how do I configure it to use with my current Git install?

8DH
  • 2,022
  • 23
  • 36
Isxek
  • 1,096
  • 11
  • 19

4 Answers4

4

I can't speak for other git clients, but if you're using the git-bash shell, you can download the source for git-tfs from github, compile it, and put it anywhere on your system and add that location to your path environment variable. The shell will find git-tfs and hook it in.

edwinf
  • 96
  • 3
  • I just downloaded the Git-TFS files and put its location in my $PATH. It worked! (Not exactly the answer I was looking for, but this allows me to do away with Chocolatey.) – Isxek Jun 06 '12 at 22:20
  • Download link for v0.20.0 https://github.com/git-tfs/git-tfs/releases/download/v0.20.0/GitTfs-0.20.0.zip from http://git-tfs.com/ (latest at time of writing) – Tim Abell Jul 23 '14 at 17:22
  • Using bash specifically is what I had to do...the docs say to use a command prompt, but the windows cmd.exe didn't work - had to use bash. Thanks! – How 'bout a Fresca Oct 20 '15 at 13:25
3

The easiest way would be to let the bridge install Git, while keeping your Git installation in a custom directory, which you can easily do with the Portable application for official Git for Windows (ie a seup you can simply uncompress anywhere you like).

From there, using your git installation is mainly about catching your global config settings, which are in %HOME%/.gitconfig. So make sure you have HOME defined, and bot git (yours and the one installed by the bridge) will use those.


Now if you don't need a portable installation (or a full recompilation like edwinf suggests in his answer), then ferventcoder (member of the chocolatey organization) suggests in the comment to look at/comment on issue 131:

Add a switch for ignoring dependencies on install (Something like -ignoredependencies)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I guess that means a "no." :) If there's a way to use the [Git-TFS files from Github](https://github.com/git-tfs/git-tfs/downloads) directly with Git (after unzipping them somewhere), that would be a better workaround. Thanks! – Isxek Jun 06 '12 at 11:57
  • @Isxek true, but I didn't find the need for one git to use another, except for the global settings. So I usually leave the different Git installations alone. – VonC Jun 06 '12 at 12:14
  • Adding a switch to ignore dependencies will probably work best... https://github.com/chocolatey/chocolatey/issues/131 – ferventcoder Jul 13 '12 at 03:57
  • @ferventcoder True. I have included your comment in the answer for more visibility. – VonC Jul 13 '12 at 05:35
1

You could download git-tfs.

No need to use chocolatey! (But chocolatey is a very good tool ;))

Philippe
  • 28,207
  • 6
  • 54
  • 78
  • Unfortunately this seems to an option which will only work until 11-feb-2013 - see https://github.com/blog/1302-goodbye-uploads – steenhulthin Feb 06 '13 at 12:29
  • It's gone from the github UI *but* the link at the top of http://git-tfs.com/ still works, which is pointing here -> https://github.com/git-tfs/git-tfs/releases/download/v0.20.0/GitTfs-0.20.0.zip (v0.20.0, latest at time of writing) Hurrah. – Tim Abell Jul 23 '14 at 17:16
  • Yes. "Upload" has been deprecated by GitHub just to be replaced by "Release". We know use that to release git-tfs binaries...(see my link in my answer). And Chocolatey is just a wrapper toward this zip file. – Philippe Jul 24 '14 at 16:17
0

Just download and extract the latest build, and put that directory in your PATH.

skiphoppy
  • 97,646
  • 72
  • 174
  • 218