Existing issues matching what you're seeing
Git for Windows version
When I upgraded from Git-2.55.0.3 to Git-2.55.0.5, my batch files that I run (GitPull.bat) no longer close when you double-click on them and they issue a "git pull.
Here's an example. Create a batch file that issues a Git Pull from any repository:
@Echo on
cd\My Repository
git pull
Then double-click on the batch file in File Explorer under Windows 11. Under 2.55.0.3, the command window will automatically close at the end of the batch file. Under 2.55.0.5, it stays open. Even adding "Exit" to the end of the batch file won't close the command window.
Rolling back to 2.55.0.3 fixed the issue for me.
Can you please take a look?
Windows version
Windows 11
Windows CPU architecture
x86_64 (64-bit)
Additional Windows version information
Windows 25H2 (OS Build 26200.9168)
Options set during installation
Other interesting things
Create the following GitPull.bat batch file:
@echo on
cd\My Repository
git pull
Then double-click on the batch file in File Explorer under Windows 11. Under 2.55.0.3, the command window will automatically close once "git pull" finishes. Under 2.55.0.5, the Command window stays open, and you have to 'X' out of it. Even adding "Exit" to the end of the batch file won't close the command window.
Terminal/shell
Batch file (GitPull.bat) created and run by double-clicking it in File Explorer
Commands that trigger the issue
Git pull (from a Windows 11 batch/command file)
Expected behaviour
After the batch file executes, 2.55.0.3 automatically closes the command Window. Under 22.5.0.5, the command window no longer closes
Actual behaviour
The command window stayed open, and I had to 'X' out of it. I've been able to duplicate this on MULTIPLE machines.
Repository
No response
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
Create the following GitPull.bat batch file:
@echo on
cd\My Repository
git pull
Then double-click on the batch file in File Explorer under Windows 11. Under 2.55.0.3, the command window will automatically close once "git pull" finishes. Under 2.55.0.5, the Command window stays open, and you have to 'X' out of it. Even adding "Exit" to the end of the batch file won't close the command window.
Terminal/shell
Batch file (GitPull.bat) created and run by double-clicking it in File Explorer
Commands that trigger the issue
Expected behaviour
After the batch file executes, 2.55.0.3 automatically closes the command Window. Under 22.5.0.5, the command window no longer closes
Actual behaviour
The command window stayed open, and I had to 'X' out of it. I've been able to duplicate this on MULTIPLE machines.
Repository
No response