In my current development environment, when I run git rebase interactively ( --interactive ), it often opens vi and invites me to make changes to some text file as a way to tell me how to handle rebase. vi highlights these files in a way that git seems to define. (Keywords such as "pick", "squash", etc., which have a special meaning for git in this context, are highlighted in different colors.)
I prefer to use emacs over vi, so I configured git to open emacs instead ( git config --global core.editor "emacs -nw" ). Unfortunately, emacs does not highlight the file provided by git, as vi does. How can i fix this?
Edit:
If you are not familiar with a file created using interactive git rebase, here is an example:
pick f218f23 A major overhaul of the cucumber integration tests pick 601d8f4 A bunch of minor bug fixes and refactoring pick 1adc507 Adding and updating documentation for various files.
In this example, the βpickβ keyword, hashing changes, commit descriptions, and comments will be highlighted in different colors.
source share