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
  • Couldn't this be avoided by merging the parent branch before rebasing?
    – Jabari
    Commented Aug 3, 2021 at 7:19
  • 2
    @Jabari - My answer was for situations when rebasing against a previous commit in the same branch. For example: If you are working on a change and made 10-15 commits locally, but want to clean-up the commit history before pushing to a remote branch. You can use this command to squash all your commits into one commit and push that to the remote.
    – dvvrt
    Commented Aug 6, 2021 at 13:27
  • Gotcha! I should have read the first line better!
    – Jabari
    Commented Aug 6, 2021 at 18:45