Is there a way to specify an editor on a git command in a one-off style -
this question has answer here:
- how make git use editor of choice commits? 17 answers
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
Post a Comment