-
Notifications
You must be signed in to change notification settings - Fork 704
Squashing Your Commits
Sk Niyaj Ali edited this page Dec 25, 2024
·
1 revision
It is common for pull requests to undergo multiple rounds of review before being merged. To keep the Git history clean and organized, you should always squash your commits before finalizing the merge. Here's how you can do it:
-
Squash your commits:
git rebase -i HEAD~x
Replace x with the number of commits you want to squash. An interactive rebase will open, allowing you to choose how to combine the commits. Change pick to squash (or simply s) for all but the topmost commit. Save and exit the editor.
-
Amend the commit message if needed.
git commit --amend
-
Force push the changes to your forked repository:
git push --force origin your-branch-name
Please note that force pushing rewrites the Git history, so use it with caution.
- Self Service API - https://demo.mifos.io/api-docs/apiLive.htm#selfbasicauth
- Join Firebase Android App Testing - https://appdistribution.firebase.dev/i/87a469306176a52a
- Kotlin Multiplatform - https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html
- JetBrains Toolbox - https://www.jetbrains.com/toolbox-app/
- Compose Multiplatform - https://www.jetbrains.com/compose-multiplatform/
- Fastlane - https://docs.fastlane.tools/