这么简单的问题居然搜索了一会儿,现在的网络环境越来越差了。
解决方法:
git config --global core.editor "gedit -s"
the paramater "-s " means set the gedit mode to "standalone"
git config --global core.editor "subl -w"
the paramater "-w" means return until the file was closed.
参考:https://www.cnblogs.com/maadiah/archive/2012/02/27/2369931.html