Search code examples
git-bashgit-tag

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


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


Solution

  • I have faced 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.