Getting Julia REPL working in Windows git/bash

I don’t know what’s going wrong here, but if I run the vanilla julia distribution from bash on windows, it works fine. But if I run julia with winpty, it starts printing similar control characters that you’re seeing.
That is git bash:

$ julia
julia> run(`ls`)
.
.
.
Process(`ls`, ProcessExited(0))
julia>

works fine. But

$ winpty julia
julia> run(`ls`)
.
.
.
?[0mProcess(...[some more stuff here]
[some more control characters]julia> [more control characters]

breaks. Could be a clue for you to troubleshoot further.