Git - Squashing Commits
Learn how to squash commits
- In a git repository, create a new file with the content “Mario” and create a new commit
- Make change to the content of the file you just created so the content is “Mario & Luigi” and create another commit
- Verify you have two separate commits
- Squash the latest two commits into one commit
After you complete the exercise
Answer the following:
- What is the reason for squashing commits?
- Is it possible to squash more than 2 commits?