Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue. What did you do before the bug happened? (Steps to reproduce your issue) $ mkdir test $ cd test $ git init $ echo foo > "filename 2" $ git add "filename 2" $ git commit -m "test" $ git log -p | grep "+++" | xxd # 0x09 is a \t character that is being added to a filename with a space 00000000: 2b2b 2b20 622f 6669 6c65 6e61 6d65 2032 +++ b/filename 2 00000010: 090a .. What did you expect to happen? (Expected behavior) $ echo "foo" > filename2 4 git add . $ git commit -m "test" $ git log -p | grep "+++" | xxd 00000000: 2b2b 2b20 622f 6669 6c65 6e61 6d65 320a +++ b/filename2. What happened instead? (Actual behavior) A tab character is being appended to filenames. What's different between what you expected and what actually happened? A tab character should not be appended to filenames. Anything else you want to add: No. Please review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.39.1 cpu: arm64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000 arm64 compiler info: clang: 14.0.0 (clang-1400.0.29.202) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh [Enabled Hooks]