Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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)

You could download git-tfs.

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top