Simple git-tfs unshelve kicking back “The system cannot find the file specified”

StackOverflow https://stackoverflow.com/questions/12043182

  •  27-06-2021
  •  | 
  •  

Question

I have quite a bit of work in a TFS shelveset and wanted to switch to using git-tfs. Things started smoothly, but I'm stuck on the error below. Here was my sequence, working from an empty directory.

> git-tfs quick-clone http://my-server/tfs/collection $/my/tfs/path
3145 objects created...
blah = longhashcode

> cd path

> git checkout -b MyWork
Switched to new branch 'MyWork'

> git-tfs unshelve MyTfsShelfName MyWork
The system cannot find the file specified

I've tried adding -u "myuser", a new branch name, etc., but can't get any farther than "The system cannot find the file specified." Stumped. :(

Was it helpful?

Solution

I'm pretty sure the error message you're getting is caused by git-tfs not being able to locate git.exe. (It is git.cmd that is added to the path by default). Instead of "git-tfs", try using "git tfs", like so:

git tfs unshelve MyTfsShelfName MyWork

More information: https://github.com/git-tfs/git-tfs/issues/31

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