git tag fails with $'\226git': command not found

adrhc picture adrhc · Apr 26, 2018 · Viewed 14.2k times · Source

I'm using Git BASH in windows 7 and I try to create a tag:

git tag -a v2.44.13 -m "[before prod] bla bla bla"

and fails with:

$'\226git': command not found

Same command works with Git CMD. Why this happens and how to solve it?

git version 2.11.0.windows.1

Answer

Seymur Mammadli picture Seymur Mammadli · Sep 14, 2019

I have face same issue and it was because of copy-paste. Typing by hand solves the issue. If you don't want type all the command by hand try to go at the starting of the command after pasting it to the console and click backspace button multiple times. This should remove hidden characters and should work also.