6

I've installed msysgit [msysGit-fullinstall-1.7.4-preview20110204.exe] on Windows 7 64-bit, and extracted git-tfs [GitTfs-0.11.0.zip] into a directory on my machine.

I've setup both the msysgit installation directory (e.g. C:\software\msysgit\msysgit) on the PATH as well as the directory to which I extracted git-tfs (e.g. C:\software\GitTfs-0.11.0).

I run msys, and then attempt to run git tfs but I receive the error:

git: 'tfs' is not a git command. See 'git --help'.

According to https://github.com/spraints/git-tfs/wiki this should be possible.

What have I missed? Just running git-tfs from the command line (cmd) doesn't work either.

Thanks,

James

jamiebarrow
  • 185
  • 4
  • 17

3 Answers3

6

It seems that whitespace anywhere in the PATH variable causes git to freak out and ignore all the paths after that. Adding the path to your tfs directory at the start of the PATH variable should solve it.

Examples using the bash prompt that comes with msysgit

PATH=$PATH:/C/software/GitTfs-0.11.0

did not work

PATH=/C/software/GitTfs-0.11.0:$PATH

worked fine for me.

Paxxi
  • 7,186
0

Looking at the content of a GitTfs-0.11.0.zip, I see it contains a git-tfs.exe.
That means git tfs won't work, only git-tfs.

If you have added C:\software\GitTfs-0.11.0 to your PATH (in the environment variables), this should work, provided you open a new DOS session, in order to inherit that new PATH.

VonC
  • 14,588
-1

The steps below worked for me:

  1. Download GitTfs zip and unblock downloaded files (right click each file->properties->click unblock
  2. Copy files to Git folder (for me C:\Program Files (x86)\Git\bin) (I've 15 files)
  3. Now the git tfs command should work.
Garrett
  • 4,217
  • 1
  • 24
  • 33
Manish Jain
  • 101
  • 1