Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 560
adrhc Avatar asked Sep 01 '25 22:09

adrhc


2 Answers

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.

like image 77
Seymur Mammadli Avatar answered Sep 04 '25 22:09

Seymur Mammadli


When you type Ctrl+Shift+V in the terminal it adds the \226 code to the command line. If you type Shift+Insert without attempting any keyboard shortcuts it should work properly.

like image 42
Andrew Mascillaro Avatar answered Sep 04 '25 22:09

Andrew Mascillaro