1

I found examples for Windows but I do not find for Ubuntu.

https://blog.kitware.com/using-notepad-for-your-git-commit-messages/

How to use Notepadqq for edit git commit messages in Ubuntu?

makbuk
  • 11

2 Answers2

0

notepadqq needs a way to be "openable" in a fresh session and blocking the terminal, so it does not let git finishes before you've edited your commit message or rebase task list.

I would recommend kate as an alternative, that works really well for that. Edit your ~/.profile file, by adding this line

export GIT_EDITOR="kate --startanon --block"
Mathieu J.
  • 1,256
0

Do one of the following (not necessarily both):

  • Set core.editor : git config --global core.editor "notepadqq"
  • Set the GIT_EDITOR environment variable: export GIT_EDITOR=notepadqq
storm
  • 5,013