How to exit a git status list in terminal ?
enters the command mode, w is for “write” (save) and q is for “quit“. You may need to hit escape before :wq to exit the insert mode ( vi is a mode based editor). If you want to exit without saving hit escape, :q! and enter. git opens your default editor so you can edit the commit message.