From Powershell I've called git commit and it presents me with
I typed the commit message (in yellow) but I have no idea what to do next. Pressing Enter just adds a newline to my input. How do I complete the commit? I've been through several tutorials but none of them explained the next step.
EDIT: So I found I can press : to make the cursor jump to the bottom line, then type wq to complete the commit. What exactly is this? Is it correct? Are there any alternatives?
You can also use :x<cr> or just ZZ [no <cr> needed and which is shortand for the :x]. These have the virtue [over :wq] that they will terminate vi but will not write to the file (i.e. change the mtime) unless [pending] changes have been made in the vi edit. –
Craig EsteyMay 29 '16 at 3:14
After typing the message, press Escape to exit insert mode and then type :wq (write/save and quit, or :q! if you want to cancel and return to the prompt). Alternatively, you can commit in one step by typing git commit -m "message"
From Powershell I've called git commit and it presents me with
I typed the commit message (in yellow) but I have no idea what to do next. Pressing Enter just adds a newline to my input. How do I complete the commit? I've been through several tutorials but none of them explained the next step.
EDIT: So I found I can press : to make the cursor jump to the bottom line, then type wq to complete the commit. What exactly is this? Is it correct? Are there any alternatives?
You can also use :x<cr> or just ZZ [no <cr> needed and which is shortand for the :x]. These have the virtue [over :wq] that they will terminate vi but will not write to the file (i.e. change the mtime) unless [pending] changes have been made in the vi edit. –
Craig EsteyMay 29 '16 at 3:14
After typing the message, press Escape to exit insert mode and then type :wq (write/save and quit, or :q! if you want to cancel and return to the prompt). Alternatively, you can commit in one step by typing git commit -m "message"
From Powershell I've called git commit and it presents me with
I typed the commit message (in yellow) but I have no idea what to do next. Pressing Enter just adds a newline to my input. How do I complete the commit? I've been through several tutorials but none of them explained the next step.
EDIT: So I found I can press : to make the cursor jump to the bottom line, then type wq to complete the commit. What exactly is this? Is it correct? Are there any alternatives?
You can also use :x<cr> or just ZZ [no <cr> needed and which is shortand for the :x]. These have the virtue [over :wq] that they will terminate vi but will not write to the file (i.e. change the mtime) unless [pending] changes have been made in the vi edit. –
Craig EsteyMay 29 '16 at 3:14
After typing the message, press Escape to exit insert mode and then type :wq (write/save and quit, or :q! if you want to cancel and return to the prompt). Alternatively, you can commit in one step by typing git commit -m "message"
0down votefavoriteFrom Powershell I've called git commit and it presents me withI typed the commit message (in yellow) but I have no idea what to do next. Pressing Enter
:x<cr>
or justZZ
[no<cr>
needed and which is shortand for the:x
]. These have the virtue [over:wq
] that they will terminatevi
but will not write to the file (i.e. change the mtime) unless [pending] changes have been made in thevi
edit. – Craig Estey May 29 '16 at 3:14