Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8763329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:45:26+00:00 2026-06-13T15:45:26+00:00

In my current development environment, when I run git rebase in interactive mode (

  • 0

In my current development environment, when I run git rebase in interactive mode (--interactive) it will often open vi and prompt me to make changes to some text file as a way for me to tell it how to handle the rebase. vi highlights these files in a way that seems to be determined by git. (Keywords like ‘pick’, ‘squash’, etc that have special meaning to git in this context are highlighted with 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 doesn’t highlight the file provided by git like vi does. How can I fix this?


Edit:

In case you aren’t familiar with the file generated by an 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.

# Rebase ff8cb22..1adc507 onto ff8cb22
#
# Commands:
#  p, pick = use commit
#  r, reword = use commit, but edit the commit message
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#  f, fixup = like "squash", but discard this commit's log message
#  x <cmd>, exec <cmd> = Run a shell command <cmd>, and stop if it fails
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
c:\my_project\.git\rebase-merge\git-rebase-todo [unix] (15:50 26/10/2012)

In this example, the keyword ‘pick’, the revision hashes, the commit descriptions, and the comments would all be highlighted different colors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:45:28+00:00Added an answer on June 13, 2026 at 3:45 pm

    Either there’s a mode for it already somewhere out there (e.g as part of magit), or else someone will have to write one for it (should be fairly easy, if you show us some sample content, as well as some hint about what kind of file name they have).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have imported my svn repository to git. My current branch for development is
The situation: I need to convert our current development environment from Windows XP 32-bit to
Currently building a WPF app that will run in an environment where the user
Our current development environment at work is Windows XP pro. It is a fine
For various reasons (code review mostly) I need to switch from current development branch
Here is how our current php development solution is set up: Each developer work
My current pattern is to merge topic branches into my main development branch once
I'm trying to convert a current Django project in development to use zc.buildout So
I have the current bundle reference working locally: Bundles.Reference(/Content/global.css); On the development site, this
Clarification: My previous Android development environment has been a Win7 machine using command-line build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.