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 6199985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:17:12+00:00 2026-05-24T04:17:12+00:00

I think I squashed the last 40 commits using rebase. I was following this

  • 0

I think I squashed the last 40 commits using rebase.
I was following this guide to make sure I didn’t do anything stupid – http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

The problem is, I think I did something stupid.

The (interactive) text file couldn’t be saved, so it seems that the rebase failed but the message it gave and some other things below suggest it might have worked.

Not sure where I am or what to do (or even what my name is).
Here’s what I did:

  • I typed git rebase -i HEAD~40
  • A text file came up, which I edited, by changing all lines to start with ‘squash’ except the top one
  • I’m on windows, using EditPad… the file can’t be saved! Oh noes… (read-only/permissions?).
  • I save it to a random directory.
  • The command line shows some sort of success (unfortunately I’ve lost the message). I don’t know how it could succeed or know where the file I saved is…

  • git rebase –continue says “No rebase in progress?

  • git reflog suggests it worked (from what I know at least, the word ‘rebase’ is showing on the last 40 odd commits) eg:

    9992445 HEAD@{8}: rebase: reports working

  • but running git log shows all 40 commits I just ‘rebased’

This isn’t looking good. Does anyone know what state I’m in?
Am I in limbo, was this a zombie rebase?

  • 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-05-24T04:17:13+00:00Added an answer on May 24, 2026 at 4:17 am

    If the rebase “todo list” couldn’t be saved, your rebase didn’t work.

    The easiest way to squash that many commits would be to do git reset --soft HEAD~40 and then git commit with your new message – assuming you want to squash all of them.

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

Sidebar

Related Questions

I don't quite understand how the commits are squashed with git rebase -i. There
Think of the following services on one box: SOCKS proxy HTTP proxy SSH service
I think most people know how to do this via the GUI (right click
I think this is specific to IE 6.0 but... In JavaScript I add a
I think I know how to handle this case, but I just want to
I think this is a multi-part question, so bear with me. Currently all of
Edit: I am using domPDF 0.5.1, hosted http://code.google.com/p/dompdf/ I am using HTML table to
I think I've asked this before but I can't find the question now, and
I think this is not really possible but worth asking anyway. Say I have
I think I understand the use of IntPtr, though I'm really not sure. I

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.