I want to get the list of the names of my merged branches into a file.
$ git branch --merged
fix-typo
* master
update-readme
However, when I write this output into a file and I open it with Vim, I find some unexpected characters:
$ git branch --merged > test
$ vim test
fix-typo^[[m
* ^[[32mmaster^[[m
update-readme^[[m
What are they and how can I remove the ^[[m
and ^[[32
characters?