> Please note that the above creates a .gitconfig file on your home > directory. > > Maybe $HOME on the Git bash shell is different from $HOME on Emacs?
Very good point, my $HOME in emacs is actually different than in bash. So I copied .gitconfig from bash $HOME to emacs $HOME and it works now. However, I don't want to copy this file every time the global configuration gets changed , is there other way to solve the problem? Thanks a lot, York
