how to save and exit git commit message code example Example: git bash save commit message Press Esc, type :wq, enter