如何在此 bash 弹出窗口中输入提交消息?

How do I enter the commit message in this bash pop-up?

我想在 GitHub 上将远程存储库合并到新存储库。我尝试了以下 bash 命令:

git init
git commit --allow-empty -m "Initial dummy commit"
git remote add --fetch old_a <OldA repo URL>
git merge old_a/master --allow-unrelated-histories

执行完最后一条命令后,弹出这个画面:

此处bash要求我输入提交信息。但除了黄线外,其他地方似乎都禁止打字。不仅如此,如果我想回到命令行,我什至无法终止这个提示。似乎 没有办法突破 除了关闭 bash 本身。那么我该如何从这里开始呢?

PS:我已经尝试将我的默认git编辑器更改为vim 使用以下命令:

git config --global core.editor vim

还有,

export EDITOR="vim"

但是这两个命令都不起作用

这不是问题,您只需

按 Insert 键,然后按 Enter 键。这将允许您输入消息

完成后按 Esace (Esc) 然后 :wq 退出