'conda activate environment failed when using git bash on windows

When I try to activate a new conda env, it hints that I should use conda init first,so I follow it.But even if I did it and try to activate env by command conda activate ml,it shows that a weird word below:

bash: PS1=(ml) \[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ : No such file or directory

this is the screeenshot after I use conda init: conda init result

I guess it may relate to some .sh file or something else,but I can't figure out which file actually affect it and what should I do to fix it.It would be great if someone could help me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source