backspace does not work git bash

I had this same problem today after switching to mintty with a fresh version of git. In my case, it was an old .bashrc file I'd been carrying around for many years with the line export TERM=ansi. After removing that and starting a new bash, everything works again.

More generally, to debug, I was suspicious of all the dot-config stuff in my home directory--so I moved things like .bash_profile, .bashrc, .inputrc, etc. into a temporary directory where they wouldn't be read by bash. Then, I started bash and saw that it worked. I mention it because, if it isn't specifically the TERM issue I had, you might be able to debug using the same technique.


Not sure if this is the same issue.. But I ran into the same after upgrading git

This helped me.. Just enter TERM=XTERM in the bash

I got this from an issue log in github..

screenshot

Tags:

Perl

Git Bash