Squashing Multiple Commits into One
In this episode, we will combine two existing commits into a single one.
Transcript
In this episode, we will combine two existing commits into a single one.
So let’s look at our example scenario. And let’s say we’d like to combine these two commits here into one. To do that, we first have to make sure that we have the current HEAD branch selected.
Now we can simply select the commits we want to combine, right-click one of them and then select “Squash” from the menu. And that’s already it! Really easy!
Another way is to simply drag one commit and drop it onto another commit. Tower is clever enough to understand that that you want to squash two commits into one - and voila! Really simple!
Course outlineEpisode 15 of 17
- Discarding All Local Changes in a File
- Restoring a Deleted File
- Discarding Chunks / Lines in a File
- Discarding All Local Changes
- Fixing the Last Commit
- Reverting a Commit in the Middle
- Resetting to an Old Revision
- Resetting a File to an Old Revision
- Recovering Deleted Commits
- Recovering a Deleted Branch
- Moving a Commit to a New Branch
- Moving a Commit to a Different Branch
- Editing Old Commit Messages
- Deleting Old Commits
- Squashing Multiple Commits into One
- Adding a Change to an Old Commit
- Splitting / Editing an Old Commit