Is there a way to specify an editor on a git command in a one-off style -


this question has answer here:

as mentioned above, looking this:

$ git commit -m "my first commit" --editor="vim"

that allow me one-off swap editor single run. examples might useful when squashing lengthy histories or writing messages feature commit.

you can override editor environment variable 1 git execution:

editor=nano git commit -a 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -