Git says "this does not look like a git repository.. exiting" but my commit works anyways

时间:2016-08-31 17:42:40

标签: git

I make a commit:

$ git commit -m 'Add comment'

And I get this message:

env: git: No such file or directory
this does not look like a git repository.. exiting
[my-branch af881ac] Add comment
 1 file changed, 1 insertion(+)

I thought the commit failed, because git doesn't even think there's a repository, but it didn't fail. It worked — I see it when I run git log.

What's going on here?

0 个答案:

没有答案