This is not git
. This is nano
, the text editor.
If you prefer another editor, e.g. vim
, use export EDITOR=vim
or less generally git config --global core.editor vim
To answer your question, M-D
refers to the Meta key which on a PC is mapped to Alt. Press Alt+D
.