<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h" -->

---
title: Fixing up Git with Autosquash | daily.dev
description: Git&#x27;s `--fixup` and `--autosquash` features provide a cleaner way to incorporate feedback into a series of commits without manual interactive rebasing. When...
canonical: https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fixing up Git with Autosquash | daily.dev
og:description: Git&#x27;s `--fixup` and `--autosquash` features provide a cleaner way to incorporate feedback into a series of commits without manual interactive rebasing. When...
og:url: https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h
og:image: https://api.daily.dev/og/posts/y54arzI6H.png
og:image:alt: Fixing up Git with Autosquash
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fixing up Git with Autosquash

**[GitButler Blog](https://daily.dev/sources/gitbutler)** · 7 min read · 0 upvotes · 0 comments

## Summary

Git's `--fixup` and `--autosquash` features provide a cleaner way to incorporate feedback into a series of commits without manual interactive rebasing. When you commit with `git commit --fixup=[sha]`, Git writes a specially formatted commit message marking it as a fixup for a specific earlier commit. Running `git rebase --autosquash` then automatically rearranges and squashes those fixup commits into their target commits, eliminating the need to manually edit the rebase todo list. This is especially useful for patch-series workflows where maintaining a clean, reviewable commit history across review rounds is important.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.gitbutler.com/git-autosquash>

## Similar posts on daily.dev

- [Git fixup is magic \(and Magit is too\)](https://daily.dev/posts/git-fixup-is-magic-and-magit-is-too--f0vt7penc) · Lobsters · 1 upvotes · 0 comments
- [The git history command deserves more attention](https://daily.dev/posts/the-git-history-command-deserves-more-attention-4x11kdegr) · Hacker News · 9 upvotes · 0 comments
- [Git Commands For a Single Commit](https://daily.dev/posts/git-commands-for-a-single-commit-rbwx1zjhh) · Atomic Spin · 1 upvotes · 1 comments
- [Git Rebase for the Terrified](https://daily.dev/posts/git-rebase-for-the-terrified-ynroja8em) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#git](https://daily.dev/tags/git), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Fixing up Git with Autosquash","url":"https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h"},"datePublished":"2026-07-26T07:48:23.244Z","dateModified":"2026-07-26T07:49:08.403Z","description":"Git's `--fixup` and `--autosquash` features provide a cleaner way to incorporate feedback into a series of commits without manual interactive rebasing. When...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7a0bab090cba246d8593bb3e65ef2345?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7a0bab090cba246d8593bb3e65ef2345?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"GitButler Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GitButler Blog","logo":"https://media.daily.dev/image/upload/s--LrHsyt2T--/f_auto/v1692632054/squad_placeholder_sfwkmj","url":"https://daily.dev/sources/gitbutler"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/fixing-up-git-with-autosquash-y54arzi6h","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"git,version-control","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GitButler Blog","item":"https://daily.dev/sources/gitbutler"},{"@type":"ListItem","position":3,"name":"Fixing up Git with Autosquash"}]}
```

