git bash save commit message

C++
Press Esc, type :wq, enter
Source

Also in C++: