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?

1
  • Have you tried using the git config command? What was the result?
    – Melebius
    May 9, 2017 at 12:28

2 Answers 2

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
2
  • export applies to the current shell session only.
    – Melebius
    May 9, 2017 at 13:08
  • I tried to do it as in the first version. But it shows me message "Aborting commit due to empty commit message." When I try to do as described here stackoverflow.com/questions/9725160/… git config --global core.editor "Notepad++ -w" - it doesn't work.
    – makbuk
    May 14, 2017 at 13:28
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"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .