'Getting child process exited abnormally error on git commit

I frequently get an error message while performing commits from the GIT GUI, which says:

child process exited abnormally
child process exited abnormally
    while executing
"close $fd_ot"
    (procedure "commit_committree" line 24)
    invoked from within
"commit_committree file228463e6830 6bab594ce....2a2487cd70bdb32 .git/GITGUI_EDITMSG"
git


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source