Various raster pictures can be transformed to ASCII art with the use of a simple program called jp2a found on SourceForge, or perhaps other similar programs. Unfortunately, the program only supports JPEG for import purposes, so you would have to first convert git to jpg.
Other than that, some graphics editors may also offer ASCII art function, but the quality may vary.