How to Use Git Rebase to Squash a Sequence of Commits to a New Base Commitā€‚by@mralx
1,549 reads
1,549 reads

How to Use Git Rebase to Squash a Sequence of Commits to a New Base Commit

by Alex Ferreira4mMay 4th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Rebasing is one of the two Git processes of integrating changes from one branch to another. The goal of rebasing is to keep a clean, clear project history. It allows us to edit commits, squash them, remove them, amend them and so much more. Rebasing can be more powerful (and dangerous) than merging or merging a merge commit. It can be used to update a new commit message and then edit its commit message. The rebase command is followed by the -i parameter and the commit we want to modify.

Company Mentioned

Mention Thumbnail
featured image - How to Use Git Rebase to Squash a Sequence of Commits to a New Base Commit
Alex Ferreira HackerNoon profile picture
Alex Ferreira

Alex Ferreira

@mralx

Front End Web Developer @hanko.io and owner of a cat named Ubuntu

About @mralx
LEARN MORE ABOUT @MRALX'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Alex Ferreira HackerNoon profile picture
Alex Ferreira@mralx
Front End Web Developer @hanko.io and owner of a cat named Ubuntu

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
Ā Terminal
Read this story w/o Javascript
Read this story w/o Javascript
Ā Lite
L O A D I N G
. . . comments & more!