Multiple git editors

Is it possible to have different editors configured for different git commands?


  • Undo git pull from remote branch on a fresh git repository to a state before git pull
  • Could I use GIT in a situation where each file is essentially its own repo
  • Is there a way to integrate git into the windows cmd or powershell?
  • What is the proper way to generate, store, and configure an SSH public/private key pair for git repository usage on Assembla?
  • Git: rewriting history to collapse commits with the same message and time (merging submodules)
  • Can GITHub commits be pushed to a new branch? Or are they already committed to the original?
    • git commit => nano
    • git rebase -i => sublime text

    Or is there possibly some scripts that could act as an intermediator and analyse what kind of command I executed and then pen my desired editor?

  • git delete a commit from pull request
  • Remove a single merged branch from master branch
  • git-svn: On Mac, “error: git-svn died of signal 6” while using git svn dcommit
  • Getting remote URL for a Git repo
  • git svn: password for svn is not stored
  • See what git fetch displayed last time
  • One Solution collect form web for “Multiple git editors”

    You can use the core.editor and sequence.editor settings. core.editor will be used for committing, and sequence.editor will be used for interactive rebasing:

    git config --global core.editor nano
    git config --global sequence.editor <path to sublime text>

    From the official Linux Kernel Git documentation for git config:


    Commands such as commit and tag that lets you edit messages by launching an editor uses the value of this variable when it is set, and the environment variable GIT_EDITOR is not set. See git-var(1).


    Text editor used by git rebase -i for editing the rebase insn file. The value is meant to be interpreted by the shell when it is used. It can be overridden by the GIT_SEQUENCE_EDITOR environment variable. When not configured the default commit message editor is used instead.

    Git Baby is a git and github fan, let's start git clone.