如何从命令提示符打开 git-bash.exe 以便它自动执行 "git status" 并等待下一个命令而不是退出

How do I open git-bash.exe from command prompt such that it executes "git status" automatically and waits for the next command instead of exiting

如何创建一个 git-bash 快捷方式来打开 git-bash.exe 并自动运行“git status” and/or “git 工作树列表”在启动时等待我的下一个命令。我试过:

您可以在 git 命令退出后附加命令 'exec $SHELL' 以生成新的交互式 shell。例如:

".\git-bash.exe" -c 'git status;exec $SHELL'