Recently, I switched to SLES 11. I found a problem for git command. All the ANSI color could not be rendered. Instead, it shows the ANSI code like this:
*ESC
For me, this did not work:
git config --global core.pager less -R
So instead i appended the following to my ~/.gitconfig file
[core] pager = less -R
To test it i did
git log --graph --pretty=format:"%C(yellow)%h%Creset%C(blue)%d%Creset %C(white bold)%s%Creset %C(white dim)(by %an %ar)%Creset" --all