---
title: "Discussion on \"How To Squash Commits Locally\" | Hashnode"
description: "Discussion on \"How To Squash Commits Locally\". If you're like me, you're probably familiar with \"squash and merge\" when merging pull requests on GitHub.\nIf you're also like me, you're now trying to figure out how to do this seemingly simple \"squash and merge\" thingy locally for some reason.\nWheth..."
url: "https://hashnode.com/posts/how-to-squash-commits-locally/64705a500e6e5900c0f6b2ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Squash Commits Locally](https://blog.afrieirham.com/how-to-squash-commits-locally?utm_source=hashnode&utm_medium=feed)

If you're like me, you're probably familiar with "squash and merge" when merging pull requests on GitHub. If you're also like me, you're now trying to figure out how to do this seemingly simple "squash and merge" thingy locally for some reason. Wheth...

May 26, 2023 · 1 min read · blog.afrieirham.com  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#version-control](https://hashnode.com/tag/version-control)

## Written by

[Afrie Irham](https://hashnode.com/@afrieirham)

@afrieirham · KL, Malaysia

  
[View profile](https://hashnode.com/@afrieirham)

hacking facebook

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
