News for hackers. Stuff that matters.
Re:Show HN I made a git rebase TUI editor by unfunco on Monday October 14, 2024 @01:20PM (#41839644)
It's GIT_EDITOR first, then EDITOR if GIT_EDITOR is not set.
Re:Show HN I made a git rebase TUI editor by codetrotter on Monday October 14, 2024 @03:25PM (#41840952)
Yes, but EDITOR is also read by a lot of other tools. And if you want to use a particular editor with git, and didn’t know about EDITOR, you probably want to set EDITOR so that when other tools open an editor it will be the same one.

But if you already have that and want something specific and different for just git then yeah GIT_EDITOR.

Re:Show HN I made a git rebase TUI editor by Jenk on Monday October 14, 2024 @02:27PM (#41840381)

    git config --global core.editor "vim"