Git dishonours GIT_DIR where gitdir doesn't contain .git at all. Note: git-repo-config core.bare false didn't help also. Steps to Reproduce: 1.Make GIT_DIR pointing to some directory, not starting with "." 2.cd to some other dir 3.git-reset -hard Actual Results: fatal: /usr/bin/git-reset cannot be used without a working tree. Expected Results: some other tree filled with working dir contents
git-reset --hard cannot be used without a working tree. When you specify GIT_DIR out of your working tree, git-reset just fails to find it.