Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Did you change the pick to squash for the second commit in the opening editor window?
    – kowsky
    Commented Mar 21, 2019 at 14:29
  • stackoverflow.com/search?q=%5Bgit-rebase%5D+first+commit
    – phd
    Commented Mar 21, 2019 at 14:51
  • 2
    In your specific situation, RomainValeri's answer is probably the simplest solution. However, it may be useful to understand why interactive rebasing isn't working for you, because rebase is a much more powerful / more general tool and will work in many cases where simply reset + commit will not Commented Mar 21, 2019 at 15:18