git-tfs/git-tfs — Issue #119: How to use it?
Author: evil-shrike
Created: 2011-12-12 09:28:45+00:00
State: open

I've created a repo for my tfs-project:
git-tfs init http://tfs:8080 $/MyProject

Then on any command I'm getting errors:
>git-tfs fetch
Fetching from TFS remote default
git command: Starting process: git log --no-color --pretty=medium refs/remotes/tfs/default
git stderr: fatal: ambiguous argument 'refs/remotes/tfs/default': unknown revision or path not in the working tree.
git stderr: Use '--' to separate paths from revisions
git command time: [00:00:00.0220012] log --no-color --pretty=medium refs/remotes/tfs/default
An error occurred while loading head refs/remotes/tfs/default (maybe it doesn't exist?): Sep.Git.Tfs.Core.GitCommandException: Command exited with error code.

>git-tfs verify
git command: Starting process: git rev-parse --show-prefix
git command time: [00:00:00.0510029] rev-parse --show-prefix
git command: Starting process: git log --no-color --pretty=medium HEAD
git stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
git stderr: Use '--' to separate paths from revisions
git command time: [00:00:00.0230013] log --no-color --pretty=medium HEAD
An error occurred while loading head HEAD (maybe it doesn't exist?): Sep.Git.Tfs.Core.GitCommandException: Command exited with error code.

>git-tfs shelve test
git command: Starting process: git rev-parse --show-prefix
git command time: [00:00:00.0520030] rev-parse --show-prefix
git command: Starting process: git log --no-color --pretty=medium HEAD
git stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
git stderr: Use '--' to separate paths from revisions
git command time: [00:00:00.0230013] log --no-color --pretty=medium HEAD
An error occurred while loading head HEAD (maybe it doesn't exist?): Sep.Git.Tfs.Core.GitCommandException: Command exited with error code.

and so on.

How to use tfs-git correctly? Could you provide some short tutorial.