【发布时间】:2022-12-15 11:59:01
【问题描述】:
我不喜欢上面链接中的解决方案,因为它创建了一个全新的 vscode 实例。我曾经能够git commit --amend,然后在我当前的vscode实例中弹出一个新选项卡,然后我在其中编辑提交消息,保存,然后关闭, hint: Waiting for your editor to close the file然后消失。从今天早上开始,这种情况不再发生,而且我认为我没有对我的~/.gitconfig 进行任何更改。
这些是我在.gitconfig中的当前设置
[submodule]
recurse = true
[user]
name = my_email
email = my_email
[credential]
helper = cache --timeout=31536000
[url "https://github.com/"]
insteadOf = git://github.com/
[alias]
tree = log --oneline --graph --all --decorate
[core]
editor = code --wait
[diff]
tool = vscode
[difftool "vscode"]
cmd = code -n --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
有谁知道这个的解决方案?
附言我刚刚尝试了链接帖子中的解决方案,其中修改被路由到不同的实例,但也没有用。当我关闭新实例时,它仍然挂在hint: Waiting for....
【问题讨论】: