skip to Main Content

In relation to this answer, I’d like to know if there is an existing keyboard shortcut to validate the message instead of going to the checkmark and click on it.
Otherwise, is it possible to put one in the keyboard shortcut interface?

I had a look at the shortcut keyboard interface but didn’t see anything related to COMMIT_sth and when you don’t know the inner name of the function…

EDIT: here is the interface I see, as soon as I click on the "Validation et envoi (push)" button.
enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    A colleague gave me his own way of dealing with this interface which is a slit bit different in is version, and it gives a workaround to my problem: just put the message in the short "Message" input box on the left part (see image in the initial question) and validate with Enter.

    Pro: It triggers the push of the code and I don't have to fly with the mouse to the checkmark.

    Con: the input box is very tiny. I have to be sure about what I write and avoid making mistake...


  2. To complete the commit message editing, you need to use the "save" action for that editor tab, and then close that editor tab. Using your keyboard, that’s probably ctrl/cmd+s to save, and then ctrl/cmd+w to close.

    Yes, it’s not very intuitive, but at least it’s consistent: That’s how it works for pretty much every commandline-based editor if you do git commits not using -m on the commandline (Ex. in vim or nano): You’ll also need to save and close the editor buffer.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search