tags:

views:

144

answers:

2

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 diffs. 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.

+1  A: 

You do not tell what you are paging with but let me guess it is less, and that is less that actually produces the bell. You can start less with the --quiet or --silent options to avoid (or sett the LESS environmental variable).

hlovdal
+3  A: 

You can turn off that annoying beep for all Windows apps using:

net stop beep
Greg Hewgill