Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Git-TFS without Git itself

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?

like image 711
Isxek Avatar asked Jun 05 '12 00:06

Isxek


2 Answers

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.

like image 159
edwinf Avatar answered Sep 24 '22 19:09

edwinf


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)

like image 34
VonC Avatar answered Sep 23 '22 19:09

VonC