While paging through the results of executing git diff
, I hear annoying beep sound when I get to the end or beginning of the diff results. I would like to know how I can disable this alarm bell?
I am running msysGit on Windows XP.
I am unable to edit the accepted answer below, so I will improve on the answer here:
By default, msysGit uses less
as the pager when running diff
s. In order to disable less
' bell sound, the command line option -q needs to be supplied to it. This can be accomplished by modifying the git
configuration for your user account or the project. Add the following to the configuration file:
[core]
pager = less -q
The location of your user accounts git configuration file is ~/.gitconfig. In Windows speak, that is %userprofile%/.gitconfig.