Existing issues matching what you're seeing
Git for Windows version
git version 2.53.0.windows.1
cpu: x86_64
built from commit: a5512bdee37ed7142c233d21e2d347ffc4860ff3
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
rust: disabled
feature: fsmonitor--daemon
gettext: enabled
libcurl: 8.18.0
OpenSSL: OpenSSL 3.5.5 27 Jan 2026
zlib: 1.3.1
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
default-ref-format: files
default-hash: sha1
MSRC-LOMOND$
Windows version
Windows 11
Windows CPU architecture
x86_64 (64-bit)
Additional Windows version information
Microsoft Windows [Version 10.0.26220.7752]
Options set during installation
C:\Users\austind>type "c:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable FSMonitor: Disabled
Other interesting things
This is a known regression in less-691
gwsw/less#709
My core.pager config includes -z-2 to get two lines of overlap on each page. This broke in less-691, and is fixed in less-692.
Please update the version of less included in the Git for Windows release.
My .gitconfig includes:
file:C:/Users/austind/cygwin-home/.gitconfig core.pager=less -e -M -X -z-2 -i -R -e -F
and my LESS environment variable is set to -M -X -z-2 -i -R -e -F
If I remove both the core.pager and the environment variable, the bug goes away.
Terminal/shell
Git bash in mintty
Commands that trigger the issue
Expected behaviour
I expect a listing of the local branches:
MSRC-LOMOND$ git branch
austind/enable-broker
* main
Actual behaviour
I get two error messages, and once I hit return, I get the correct output:
MSRC-LOMOND$ git branch
Negative number not allowed in -z <-- BUG
Negative number not allowed in -z <-- BUG
Press RETURN to continue <-- BUG
austind/enable-broker
* main
Repository
Not repo-specific
Existing issues matching what you're seeing
Git for Windows version
Windows version
Windows 11
Windows CPU architecture
x86_64 (64-bit)
Additional Windows version information
Options set during installation
Other interesting things
This is a known regression in less-691
gwsw/less#709
My
core.pagerconfig includes-z-2to get two lines of overlap on each page. This broke in less-691, and is fixed in less-692.Please update the version of less included in the Git for Windows release.
My .gitconfig includes:
and my
LESSenvironment variable is set to-M -X -z-2 -i -R -e -FIf I remove both the
core.pagerand the environment variable, the bug goes away.Terminal/shell
Git bash in mintty
Commands that trigger the issue
Expected behaviour
I expect a listing of the local branches:
Actual behaviour
I get two error messages, and once I hit return, I get the correct output:
Repository
Not repo-specific