Related post: Git hangs with "hint: Waiting for your editor to close the file..." when closing a commit message file in VSCode
I do not like the solution in the above link because it makes an entirely new vscode
instance. I used to be able to git commit --amend
and then a new tab in my current vscode
instance pops up where I then edit the commit message, save, and then close, and the hint: Waiting for your editor to close the file
then disappears. As of this morning, this no longer happens, and I don't think I made any changes in my ~/.gitconfig
.
These are my current settings in .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
Does anyone know of a solution for this?
PS I just tried the solution in the linked post where the amend is routed to a different instance, and that didn't work either. When i closed the new instance, it's still hanging on hint: Waiting for....
I don't like that this bug is not fixed. My solution: I go to my VM and commit via Git GUI, for example. It clears it on Mac side (that's where my project runs) without re-opening or new instances.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.