- [x ] I was not able to find an open or closed issue matching what I'm seeing
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.26.2.windows.1
cpu: x86_64
built from commit: 4267c88d0d8936ae723bba55e0576b1c4f3d4e1a
sizeof-long: 4
sizeof-size_t: 8
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.18363.778]
(c) 2019 Microsoft Corporation. All rights reserved.
- What options did you set as part of the installation? Or did you choose the
defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
Editor Option: SublimeText
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
- Any other interesting things about your environment that might be related
to the issue you're seeing?
core.autocrlf=true
commit.verbose=true
commit.cleanup=scissors
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Powershell 7.0.0
git commit with changes staged
- Write message in editor window that opened above the scissor line
- Save and close message
- Commit is finished
- What did you expect to occur after running these commands?
Commit message is saved and all lines below the scissors are not included in the commit message.
- What actually happened instead?
The commit message included the scissors and all lines that should have been removed in addition to the intended commit message.
$ git show
commit 8e4d40caad218bd7f8f29926fbab5818d7c11e28 (HEAD -> branch_name)
Author: Gabriel Smith <ga29smith@gmail.com>
Date: Wed May 13 16:42:12 2020 -0400
This is an example commit message
The below scissors should not have been included in the commit message.
# ------------------------ >8 ------------------------
# Do not modify or remove the line above.
# Everything below it will be ignored.
#
(further message truncated for brevity)
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
Private repo, sorry.
Setup
defaults?
to the issue you're seeing?
Details
Powershell 7.0.0
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git commitwith changes stagedCommit message is saved and all lines below the scissors are not included in the commit message.
The commit message included the scissors and all lines that should have been removed in addition to the intended commit message.
(further message truncated for brevity)
URL to that repository to help us with testing?
Private repo, sorry.